Added option to disable Read Other Posts
This commit is contained in:
parent
b90c66b4e2
commit
40de4919b8
2 changed files with 4 additions and 1 deletions
|
@ -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/"
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue