about summary refs log tree commit diff homepage
path: root/templates/archive.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/archive.html b/templates/archive.html
index c0cc144..3b20ae9 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -5,10 +5,12 @@
 <link rel=stylesheet href=/static/archive.css>
 <title>{{.Title}}</title>
 <body>
-  <nav>
-    <a id=prev href="{{.Prev}}">PREV</a>
-    <a id=up href=.>UP</a>
-    <a id=next href="{{.Next}}">NEXT</a>
+  <nav>{{if .Prev}}
+    <a id=prev href="{{.Prev}}">PREV</a>{{else}}
+    <a id=prev></a>{{end}}
+    <a id=up href=.>UP</a>{{if .Next}}
+    <a id=next href="{{.Next}}">NEXT</a>{{else}}
+    <a id=next></a>{{end}}
   </nav>
   <main>{{range .Entries}}
     <img src="?entry={{.Index}}" alt="{{.Name}}">{{end}}