update list

This commit is contained in:
Thomas T 2023-12-29 02:24:41 -05:00 committed by GitHub
parent c9c48d1650
commit d9735c08df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,12 @@
{{ define "main" }} {{ define "main" }}
<content> <content>
{{ if .Data.Singular }} {{ if .Data.Singular }}
<h3 class="blog-filter">{{ i18n "filtering-for" }} "{{ .Title }}"</h3> <h1 class="blog-filter">{{ i18n "filtering-for" }} "{{ .Title }}"</h1>
{{ else }}
<h1 class="blog-filter">{{ .Title }}</h1>
{{ $t := .Site.GetPage "tags"}}
{{ $c := .Site.GetPage "categories"}}
<p>{{ .Pages.Len }} posts sortable by <a href="{{ $c.Permalink }}">categories</a> or <a href="{{ $t.Permalink }}">tags</a>.</p>
{{ end }} {{ end }}
<ul class="blog-posts"> <ul class="blog-posts">
{{ range .Pages }} {{ range .Pages }}
@ -25,12 +30,5 @@
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
{{ if not .Data.Singular }}
<div>
{{ range .Site.Taxonomies.tags }}
<a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;&nbsp;
{{ end }}
</div>
{{ end }}
</content> </content>
{{ end }} {{ end }}