mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add a navigation a the bottom of posts
This commit is contained in:
@@ -28,8 +28,24 @@
|
||||
<div class="markdown">
|
||||
{{ partial "content" . }}
|
||||
<br>
|
||||
<p><a href="{{ .Section | absURL }}">Back to posts</a></p>
|
||||
</div>
|
||||
{{ if .Site.Params.posts_navigation }}
|
||||
<div class="navigation">
|
||||
{{ if .PrevInSection }}
|
||||
<div>
|
||||
<img class="icon" src="/img/back.svg" alt="back" />
|
||||
<a href="{{ .PrevInSection.Permalink }}">{{ .PrevInSection.Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div style="width: 100%;"></div>
|
||||
{{ if .NextInSection }}
|
||||
<div>
|
||||
<a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}</a>
|
||||
<img class="icon" src="/img/next.svg" alt="next" />
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<br>
|
||||
<div class="disqus">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
Reference in New Issue
Block a user