Add condition to show pagination only in defined contentType pages

This commit is contained in:
panr 2019-12-18 17:59:55 +01:00
parent 779d78a810
commit 95906d6405

View file

@ -32,6 +32,7 @@
<div class="post-content">
{{ .Content }}
</div>
{{ if eq .Type $.Site.Params.contentTypeName }}
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
@ -58,6 +59,7 @@
</div>
</div>
{{ end }}
{{ end }}
{{ partial "comments.html" . }}
</div>