adjust heading for related posts at the bottom of the article

This commit is contained in:
John Bowdre 2021-12-16 13:08:58 -06:00
parent c9cafc7f14
commit afdf5d0412

View file

@ -0,0 +1,9 @@
{{ if isset .Params "series" }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
<h2 class="post_related">{{ T "series_posts" }}{{ .Params.series }}</h2>
<ul>
{{ range $related }}
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}