You've already forked no-js-hugo-theme
Rename index.html -> home.html and remove 404.html
Hugo new layouts asks to rename to home.html Not sure 404.html is used
This commit is contained in:
29
layouts/home.html
Normal file
29
layouts/home.html
Normal file
@ -0,0 +1,29 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<hr>
|
||||
{{- if .Site.Params.showTagList }}
|
||||
<h2>Tags</h2>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<details>
|
||||
<summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
</details>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
<h2>All Pages</h2>
|
||||
<ul>
|
||||
{{ range .Site.RegularPages }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
Reference in New Issue
Block a user