Fix disableReadOtherPosts feature

This commit is contained in:
Djordje Atlialp 2019-11-14 17:34:34 +01:00
parent d56680f496
commit 276bb50577
3 changed files with 13 additions and 6 deletions

View file

@ -15,7 +15,9 @@
</div>
<article>
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
{{- if .Params.toc }}
<hr />
@ -56,7 +58,7 @@
{{- end }}
</div>
{{ if and (not .Site.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}
{{ if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ .Site.Params.ReadOtherPosts }}</span>