Add tags to index.html
This commit is contained in:
parent
2060a81f1a
commit
3a02cdc96e
@ -1,12 +1,26 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<h2>Posts</h2>
|
||||
<ul>
|
||||
{{ range first 100 ( where .Site.RegularPages "Section" "posts" ) }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<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 }}
|
||||
<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 }}
|
||||
|
@ -629,3 +629,8 @@ body {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
summary > h3 {
|
||||
color: purple;
|
||||
display: inline;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user