mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-14 04:15:58 -06:00
Move prevnext to be above related posts
This commit is contained in:
parent
42a7e27d09
commit
8cadf8e735
@ -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" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user