revises related post, adds option to enable/disable
This commit is contained in:
parent
f34f7ad13c
commit
c5ab13bf48
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{{ if .Site.Params.relatedPosts }}
|
||||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||||
{{ with $related -}}
|
{{ with $related -}}
|
||||||
<div class="post__related">
|
<div class="post__related">
|
||||||
|
@ -7,4 +8,5 @@
|
||||||
{{ partial "posts-list.html" . }}
|
{{ partial "posts-list.html" . }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue