mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Move prevnext to be above related posts
This commit is contained in:
parent
42a7e27d09
commit
8cadf8e735
@ -50,20 +50,6 @@
|
|||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</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 }}
|
{{ if or .NextInSection .PrevInSection }}
|
||||||
<div class="prevnext">
|
<div class="prevnext">
|
||||||
{{ with .NextInSection }}
|
{{ with .NextInSection }}
|
||||||
@ -94,6 +80,20 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ if .Params.comments }}
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user