diff options
author | Yurizal Susanto <rizalsagi@gmail.com> | 2018-05-04 11:01:40 +0300 |
---|---|---|
committer | Yurizal Susanto <rizalsagi@gmail.com> | 2018-05-04 11:01:40 +0300 |
commit | b7b7dd91ba1ef8d03c8c4eae43b45b7769509ee1 (patch) | |
tree | 43048706a93e10cdf1b50b7e75660876eaf20a0e | |
parent | a42da6dc227dc20af75366e9704ae5b4fec63fcc (diff) |
Decouple post navigation from article tag
-rw-r--r-- | layouts/_default/single.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 097bea7..45c6386 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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" . }} |