diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-27 14:04:30 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-27 14:04:30 +0700 |
commit | fa98ab0589d4be1ca89a0538f6826b0037ff9821 (patch) | |
tree | 7c019babc4d02a3b7bc8dfb2fb6550fdc58345c7 /layouts/partials/post-navigation.html | |
parent | 890252ec5e659b439165e0d18ca991ef1bfad9ee (diff) | |
download | victor-fa98ab0589d4be1ca89a0538f6826b0037ff9821.tar.gz |
Set up layout and navigation
Diffstat (limited to 'layouts/partials/post-navigation.html')
-rw-r--r-- | layouts/partials/post-navigation.html | 9 |
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> |