Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizalsagi@gmail.com>2018-05-04 11:01:40 +0300
committerYurizal Susanto <rizalsagi@gmail.com>2018-05-04 11:01:40 +0300
commitb7b7dd91ba1ef8d03c8c4eae43b45b7769509ee1 (patch)
tree43048706a93e10cdf1b50b7e75660876eaf20a0e
parenta42da6dc227dc20af75366e9704ae5b4fec63fcc (diff)
Decouple post navigation from article tag
-rw-r--r--layouts/_default/single.html28
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" . }}