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

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/prev_next.html')
-rw-r--r--layouts/partials/prev_next.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/prev_next.html b/layouts/partials/prev_next.html
new file mode 100644
index 0000000..b2ec685
--- /dev/null
+++ b/layouts/partials/prev_next.html
@@ -0,0 +1,6 @@
+{{ if .Section }}
+<nav class="post-nav">
+ <span class="nav-prev">{{ with .NextInSection }}<a href="{{ .RelPermalink }}">&larr; {{ .Title }}</a>{{ end }}</span>
+ <span class="nav-next">{{ with .PrevInSection }}<a href="{{ .RelPermalink }}">{{ .Title }} &rarr;</a>{{ end }}</span>
+</nav>
+{{ end }}