layout: move toc above tags

This commit is contained in:
John Bowdre 2023-09-17 19:06:33 -05:00
parent 62c7983155
commit 1c466213f8

View file

@ -6,20 +6,20 @@
{{ if .Params.date }}<table><tr><td>posted:</td><td>{{ $postDate }}</td></tr>{{- if ne $postDate $updateDate }}<tr><td>updated:</td><td>{{ $updateDate }}</td></tr>{{ end }}</table>{{ end }} {{ if .Params.date }}<table><tr><td>posted:</td><td>{{ $postDate }}</td></tr>{{- if ne $postDate $updateDate }}<tr><td>updated:</td><td>{{ $updateDate }}</td></tr>{{ end }}</table>{{ end }}
</p> </p>
<p> <p>
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
<h2>On this page</h2>
{{ .TableOfContents }}
<hr>
{{ end }}
{{- with .Params.tags -}} {{- with .Params.tags -}}
<a href="/tags">tags</a>:<br> <a href="/tags">tags</a>:<br>
{{- range . }} {{- range . }}
{{- $tag := urlize . -}} {{- $tag := urlize . -}}
[<a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}">{{ . }}</a>] [<a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}">{{ . }}</a>]
{{- end }} {{- end }}
<hr>
{{- end }} {{- end }}
</p> </p>
<hr>
{{ end }}
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
<h2>On this page</h2>
{{ .TableOfContents }}
<hr>
{{ end }} {{ end }}
{{ if isset .Params "series" }} {{ if isset .Params "series" }}