website

Personal website
git clone https://github.com/michaelneuper/website.git
README | Files | Log | Refs

commit acd668a0ec856b1b00cdde6896d1f9a51d8e8306
parent 702562c79707ddcc59c3f69e069373d801b72f3b
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Thu, 15 Dec 2022 20:34:31 +0200

Display next and prev buttons only on posts

Diffstat:
Mlayouts/_default/single.html | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -18,6 +18,7 @@ <div class="content-wrapper"> <main> {{ .Content }} + {{ if .Type | eq "posts" }} <div class="navbuttons"> {{- with .Prev }} <a href="{{ .RelPermalink }}"><div class="prev">Previous:<br>{{ .Title }}</div></a> @@ -26,6 +27,7 @@ <a href="{{ .RelPermalink }}"><div class="next">Next:<br>{{ .Title }}</div></a> {{ end -}} </div> + {{ end }} </main> </div> {{ partial "footer.html" . }}