Move prevnext to be above related posts

This commit is contained in:
BBaoVanC 2022-04-12 21:57:58 -05:00
parent 42a7e27d09
commit 8cadf8e735
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 14 additions and 14 deletions

View File

@ -50,20 +50,6 @@
{{ .Content }}
</div>
{{ $related := .Site.RegularPages.Related . | first 10 }}
{{ with $related }}
<div class="related">
<hr>
<h2>{{ i18n "related_posts" }}</h2>
<div class="related-posts">
{{ range . }}
{{ .Render "summary/post" }}
{{ end }}
</div>
<hr>
</div>
{{ end }}
{{ if or .NextInSection .PrevInSection }}
<div class="prevnext">
{{ with .NextInSection }}
@ -94,6 +80,20 @@
</div>
{{ end }}
{{ $related := .Site.RegularPages.Related . | first 10 }}
{{ with $related }}
<div class="related">
<hr>
<h2>{{ i18n "related_posts" }}</h2>
<div class="related-posts">
{{ range . }}
{{ .Render "summary/post" }}
{{ end }}
</div>
<hr>
</div>
{{ end }}
{{ if .Params.comments }}
<div class="comments">
{{ partial "comments.html" . }}