Option to remove taglist

This commit is contained in:
Balakrishnan Balasubramanian 2025-05-20 23:26:32 -04:00
parent 897bf02d53
commit 7b9155ee66

View File

@ -1,19 +1,22 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
<h2>Tags</h2> <hr>
{{ range .Site.Taxonomies.tags }} {{- if .Site.Params.showTagList }}
<details> <h2>Tags</h2>
<summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary> {{ range .Site.Taxonomies.tags }}
<ul> <details>
{{ range . }} <summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary>
<li> <ul>
<time>{{ .Date.Format "2006/01/02" }}</time> {{ range . }}
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> <li>
</li> <time>{{ .Date.Format "2006/01/02" }}</time>
{{ end }} <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</ol> </li>
</details> {{ end }}
{{ end }} </ol>
</details>
{{ end }}
{{- end }}
<h2>All Pages</h2> <h2>All Pages</h2>
<ul> <ul>
{{ range .Site.RegularPages }} {{ range .Site.RegularPages }}