Added option to disable Read Other Posts

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

View file

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

View file

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