diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/archive.html | 22 | ||||
-rw-r--r-- | templates/directory.html | 12 |
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> |