about summary refs log tree commit diff
path: root/layouts/partials/post-navigation.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post-navigation.html')
-rw-r--r--layouts/partials/post-navigation.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/post-navigation.html b/layouts/partials/post-navigation.html
new file mode 100644
index 0000000..b88d91f
--- /dev/null
+++ b/layouts/partials/post-navigation.html
@@ -0,0 +1,9 @@
+<nav>
+	{{ if .NextInSection }}
+	<a class="nav-next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
+	{{ end }}
+	<a class="nav-up" href="{{ .Parent.RelPermalink }}">{{ .Parent.Title }}</a>
+	{{ if .PrevInSection }}
+	<a  class="nav-prev"href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
+	{{ end }}
+</nav>