Added option to disable Read Other Posts

This commit is contained in:
JPYamamoto 2019-10-23 21:02:56 -05:00
parent 68f54a83df
commit ba913cdffd
2 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,9 @@ disableSitemap = false
disable404 = false
disableHugoGeneratorInject = false
# Set disableReadOtherPosts to true in order to hide the links to other posts.
disableReadOtherPosts = false
[permalinks]
posts = "/posts/:year/:month/:title/"

View File

@ -56,7 +56,7 @@
{{- end }}
</div>
{{ if or .NextInSection .PrevInSection }}
{{ if and (not .Site.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ .Site.Params.ReadOtherPosts }}</span>