Add See Next section #44
This commit is contained in:
parent
5c94f0297f
commit
4503d1b7a3
13 changed files with 56 additions and 3 deletions
|
@ -21,6 +21,18 @@
|
|||
{{ partial "post-info.html" . }}
|
||||
</article>
|
||||
|
||||
{{ if gt .Site.Params.readNextPosts 0 }}
|
||||
{{ $related := .Site.RegularPages.Related . | first .Site.Params.readNextPosts }}
|
||||
{{ with $related }}
|
||||
<h3 class="read-next-title">{{ i18n "readNext" }}</h3>
|
||||
<ul class="read-next-posts">
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
||||
{{ partial "post-pagination.html" . }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue