mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-25 16:32:19 +00:00
fix max number of related articles to display to match sidebar
This commit is contained in:
parent
51217f2c56
commit
713974f104
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{{ 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 .Params.numberOfRelatedPosts }}
|
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
||||||
<h2 class="post_related">{{ T "series_posts" }} {{ .Params.series }}</h2>
|
<h2 class="post_related">{{ T "series_posts" }} {{ .Params.series }}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range first $relatedLimit $related }}
|
{{ range first $relatedLimit $related }}
|
||||||
|
|
Loading…
Reference in a new issue