about summary refs log tree commit diff homepage
path: root/templates
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
parentf23c6ed4f84055551b459d235c4a675faf017cea (diff)
downloadphylactery-dd5e634482c2747d4514b784ec8dded9c7fa29cf.tar.gz
Finish basic functionality
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html22
-rw-r--r--templates/directory.html12
2 files changed, 22 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>
diff --git a/templates/directory.html b/templates/directory.html
new file mode 100644
index 0000000..c89d388
--- /dev/null
+++ b/templates/directory.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang=en>
+<meta charset=utf-8>
+<link rel=icon href=/static/favicon.svg>
+<title>{{.Title}}</title>
+<body>
+  <main>
+    <p><a href=../>../</a></p>{{range .Entries}}
+    <p><a href="./{{.}}">{{.}}</a></p>{{end}}
+  </main>
+</body>
+</html>