Commit b7b7dd91 authored by Yurizal Susanto's avatar Yurizal Susanto

Decouple post navigation from article tag

parent a42da6dc
......@@ -2,21 +2,21 @@
<article>
<header>{{ partial "title" . }}</header>
{{ .Content }}
<nav class="no-print post-nav">
{{ if .PrevInSection }}
<a class="prev-post" href="{{ .PrevInSection.Permalink }}">
<img class="icon-text" src="/img/prev.svg"/>
{{- .PrevInSection.Title -}}
</a>
{{ end }}
{{ if .NextInSection }}
<a class="next-post" href="{{ .NextInSection.Permalink }}">
{{- .NextInSection.Title -}}
<img class="icon-text" src="/img/next.svg"/>
</a>
{{ end }}
</nav>
</article>
<nav class="no-print post-nav">
{{ if .PrevInSection }}
<a class="prev-post" href="{{ .PrevInSection.Permalink }}">
<img class="icon-text" src="/img/prev.svg"/>
{{- .PrevInSection.Title -}}
</a>
{{ end }}
{{ if .NextInSection }}
<a class="next-post" href="{{ .NextInSection.Permalink }}">
{{- .NextInSection.Title -}}
<img class="icon-text" src="/img/next.svg"/>
</a>
{{ end }}
</nav>
{{ partial "related" . }}
{{ if in .Site.Params.DisqusSections .Section }}
{{ partial "disqus" . }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment