mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-27 01:02:17 +00:00
layout: tweak tags presentation
This commit is contained in:
parent
1c466213f8
commit
cf0aaea41d
1 changed files with 11 additions and 6 deletions
|
@ -5,27 +5,32 @@
|
||||||
<p>
|
<p>
|
||||||
{{ 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>
|
<hr>
|
||||||
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
|
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
|
||||||
<h2>On this page</h2>
|
<p>
|
||||||
|
<h3>On this page</h3>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
<hr>
|
<hr>
|
||||||
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- with .Params.tags -}}
|
{{- with .Params.tags -}}
|
||||||
<a href="/tags">tags</a>:<br>
|
<p>
|
||||||
|
<h3>Tags</h3>
|
||||||
|
[<a href="/tags">all</a>]
|
||||||
{{- 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 }}
|
||||||
|
<br><br>
|
||||||
<hr>
|
<hr>
|
||||||
{{- end }}
|
|
||||||
</p>
|
</p>
|
||||||
|
{{- end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if isset .Params "series" }}
|
{{ if isset .Params "series" }}
|
||||||
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
||||||
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
||||||
<h2>More {{ .Params.series }}</h2>
|
<h3>More {{ .Params.series }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range first $relatedLimit $related }}
|
{{- range first $relatedLimit $related }}
|
||||||
<li>
|
<li>
|
||||||
|
@ -45,7 +50,7 @@
|
||||||
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
|
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
|
||||||
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
|
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
|
||||||
{{- with $featuredPosts }}
|
{{- with $featuredPosts }}
|
||||||
<h2>Featured Posts</h2>
|
<h3>Featured Posts</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue