Merge pull request #73 from JPYamamoto/master
Added option to disable Read Other Posts
This commit is contained in:
commit
bd75ffa29f
|
@ -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/"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue