diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/archive.html | 5 | ||||
-rw-r--r-- | templates/base-head.html | 5 | ||||
-rw-r--r-- | templates/directory.html | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/templates/archive.html b/templates/archive.html index 3b20ae9..fbd2f7a 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -1,7 +1,4 @@ -<!DOCTYPE html> -<html lang=en> -<meta charset=utf-8> -<link rel=icon href=/static/favicon.svg> +{{template "base-head.html" -}} <link rel=stylesheet href=/static/archive.css> <title>{{.Title}}</title> <body> diff --git a/templates/base-head.html b/templates/base-head.html new file mode 100644 index 0000000..ebb981c --- /dev/null +++ b/templates/base-head.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<html lang=en> +<meta charset=utf-8> +<link rel=icon href=/static/favicon.svg> +<link rel=stylesheet href=/static/base.css> diff --git a/templates/directory.html b/templates/directory.html index c89d388..6fc35fa 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -1,12 +1,10 @@ -<!DOCTYPE html> -<html lang=en> -<meta charset=utf-8> -<link rel=icon href=/static/favicon.svg> +{{template "base-head.html" -}} +<link rel=stylesheet href=/static/directory.css> <title>{{.Title}}</title> <body> <main> - <p><a href=../>../</a></p>{{range .Entries}} - <p><a href="./{{.}}">{{.}}</a></p>{{end}} + <a href=../><p>../</p></a>{{range .Entries}} + <a href="./{{.}}"><p>{{.}}</p></a>{{end}} </main> </body> </html> |