layout: move toc above tags

This commit is contained in:
John Bowdre 2023-09-17 19:06:33 -05:00
parent 5a7ad8ac72
commit 8f31818370

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 }}
</p>
<p>
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
<h2>On this page</h2>
{{ .TableOfContents }}
<hr>
{{ end }}
{{- with .Params.tags -}}
<a href="/tags">tags</a>:<br>
{{- range . }}
{{- $tag := urlize . -}}
[<a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}">{{ . }}</a>]
{{- end }}
<hr>
{{- end }}
</p>
<hr>
{{ end }}
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
<h2>On this page</h2>
{{ .TableOfContents }}
<hr>
{{ end }}
{{ if isset .Params "series" }}