add next article and previous article links

This commit is contained in:
Lorenzo 2018-10-13 20:38:43 +02:00
parent 1749a199c8
commit 051d75c647

View File

@ -28,6 +28,17 @@
<main class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l"> <main class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
{{- .Content -}} {{- .Content -}}
{{- partial "tags.html" . -}} {{- partial "tags.html" . -}}
<div class="mt6">
{{ with .PrevInSection }}
<< <a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ with .NextInSection }}
<a href="{{ .Permalink }}">{{ .Title }}</a> >>
{{ end }}
</div>
<div class="mt6"> <div class="mt6">
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
</div> </div>