diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index c000f70..5006abb 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -42,6 +42,9 @@ params: # reddit: true # telegram: true + # show "Latest Posts" section at bottom of content pages + # latestPostsOnContent: true + # footer: >- # Some example text for the footer. diff --git a/layouts/_default/single.html b/layouts/_default/single.html index da7ffbd..b269aa0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -89,5 +89,7 @@ {{ end }} - {{ partialCached "latest-posts.html" . }} + {{ if .Site.Params.latestPostsOnContent }} + {{ partialCached "latest-posts.html" . }} + {{ end }} {{ end }}