diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/archive.html | 3 | ||||
-rw-r--r-- | templates/base-foot.html | 5 | ||||
-rw-r--r-- | templates/directory.html | 3 | ||||
-rw-r--r-- | templates/index.html | 10 |
4 files changed, 7 insertions, 14 deletions
diff --git a/templates/archive.html b/templates/archive.html index ee5d2b3..619a5bc 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -12,5 +12,4 @@ <main>{{range .Entries}} <img src="?entry={{.Index}}" alt="{{.Name}}">{{end}} </main> -</body> -</html> +{{template "base-foot.html" -}} diff --git a/templates/base-foot.html b/templates/base-foot.html new file mode 100644 index 0000000..caf7fff --- /dev/null +++ b/templates/base-foot.html @@ -0,0 +1,5 @@ + <footer> + Powered by <a href=https://git.sr.ht/~cnx/phylactery>Phylactery</a> + </footer> +</body> +</html> diff --git a/templates/directory.html b/templates/directory.html index a04637e..570e526 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -6,5 +6,4 @@ <a href=../><p>../</p></a>{{range .Entries}} <a href="./{{. | escape}}"><p>{{.}}</p></a>{{end}} </main> -</body> -</html> +{{template "base-foot.html" -}} diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 67f96fb..0000000 --- a/templates/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang=en> -<meta charset=utf-8> -<meta name=viewport content='width=device-width, initial-scale=1'> -<link rel=stylesheet href=/static/style.css> -<link rel=icon href=/static/favicon.svg> -<title>{{.}}</title> -<body> -</body> -</html> |