mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add prev/next links
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<hr>
|
||||
<div class="PageNavigation">
|
||||
{{ if .PrevInSection }}
|
||||
<a class="prev" href="{{ .PrevInSection.RelPermalink }}">« {{ .PrevInSection.Title }}</a>
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} »</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user