Make a config option for "Latest Posts" on content pages

This commit is contained in:
BBaoVanC 2022-05-04 22:05:57 -05:00
parent 56610009e9
commit 034ef462a2
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -89,5 +89,7 @@
</div>
{{ end }}
{{ partialCached "latest-posts.html" . }}
{{ if .Site.Params.latestPostsOnContent }}
{{ partialCached "latest-posts.html" . }}
{{ end }}
{{ end }}