about summary refs log tree commit diff homepage
path: root/templates/archive.html
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-01 17:04:24 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-01 17:04:24 +0900
commitdd5e634482c2747d4514b784ec8dded9c7fa29cf (patch)
treea27d32f65cf2f9864496548a72862c34d425a60f /templates/archive.html
parentf23c6ed4f84055551b459d235c4a675faf017cea (diff)
downloadphylactery-dd5e634482c2747d4514b784ec8dded9c7fa29cf.tar.gz
Finish basic functionality
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html22
1 files changed, 10 insertions, 12 deletions
diff --git a/templates/archive.html b/templates/archive.html
index d3d8e0b..c0cc144 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -1,19 +1,17 @@
 <!DOCTYPE html>
 <html lang=en>
 <meta charset=utf-8>
-<link rel=stylesheet href=/static/archive.css>
 <link rel=icon href=/static/favicon.svg>
+<link rel=stylesheet href=/static/archive.css>
 <title>{{.Title}}</title>
-<style>
-body { margin: 0 }
-img {
-    display: block;
-    margin: auto;
-    max-width: 100%;
-}
-</style>
-
-<body>{{range .Entries}}
-<img src="?entry={{.Index}}" alt="{{.Name}}">{{end}}
+<body>
+  <nav>
+    <a id=prev href="{{.Prev}}">PREV</a>
+    <a id=up href=.>UP</a>
+    <a id=next href="{{.Next}}">NEXT</a>
+  </nav>
+  <main>{{range .Entries}}
+    <img src="?entry={{.Index}}" alt="{{.Name}}">{{end}}
+  </main>
 </body>
 </html>