mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-22 15:02:18 +00:00
13 lines
573 B
HTML
13 lines
573 B
HTML
{{ if isset .Params "series" }}
|
|
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
|
{{- $relatedLimit := default 8 .Params.numberOfRelatedPosts }}
|
|
<h2 class="post_related">{{ T "series_posts" }}{{ .Params.series }}</h2>
|
|
<ul>
|
|
{{ range first $relatedLimit $related }}
|
|
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ if gt (len $related) $relatedLimit }}
|
|
<li><a href="/series/{{ lower .Params.series }}/">See all {{ .Params.series }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|