update: "rssIcon" defaults to "true" && "readNextPosts" defaults to "3"
This commit is contained in:
parent
e7a93e2088
commit
893f4a77a4
2 changed files with 13 additions and 3 deletions
|
@ -22,8 +22,13 @@
|
|||
|
||||
</article>
|
||||
|
||||
{{ if gt .Site.Params.readNextPosts 0 }}
|
||||
{{ $related := .Site.RegularPages.Related . | first .Site.Params.readNextPosts }}
|
||||
{{ $readNextPosts := 3}}
|
||||
{{ if isset .Site.Params "readNextPosts" }}
|
||||
{{ $readNextPosts := .Site.Params.readNextPosts }}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt $readNextPosts 0 }}
|
||||
{{ $related := .Site.RegularPages.Related . | first $readNextPosts }}
|
||||
{{ with $related }}
|
||||
<h3 class="read-next-title noselect">{{ i18n "readNext" }}</h3>
|
||||
<ul class="read-next-posts noselect">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue