diff --git a/config/_default/params.toml b/config/_default/params.toml index aa37bef..807cadb 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -63,6 +63,7 @@ comments = true # Maximum number of recent posts. numberOfRecentPosts = 6 +numberOfRelatedPosts = 6 # Maximum number of featured posts. numberOfFeaturedPosts = 4 diff --git a/layouts/partials/related.html b/layouts/partials/related.html index 6894d58..dc0cacd 100644 --- a/layouts/partials/related.html +++ b/layouts/partials/related.html @@ -1,9 +1,13 @@ {{ if isset .Params "series" }} {{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }} +{{- $relatedLimit := default 8 .Params.numberOfRelatedPosts }}