fix max number of related articles to display to match sidebar

This commit is contained in:
John Bowdre 2021-12-17 14:22:19 -06:00
parent 51217f2c56
commit 713974f104

View file

@ -1,6 +1,6 @@
{{ if isset .Params "series" }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
{{- $relatedLimit := default 8 .Params.numberOfRelatedPosts }}
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
<h2 class="post_related">{{ T "series_posts" }} {{ .Params.series }}</h2>
<ul>
{{ range first $relatedLimit $related }}