mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-21 22:42:19 +00:00
layout: move toc above tags
This commit is contained in:
parent
5a7ad8ac72
commit
8f31818370
1 changed files with 6 additions and 6 deletions
|
@ -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" }}
|
||||||
|
|
Loading…
Reference in a new issue