diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:25:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:27:16 +0800 |
commit | 32d164f08b3312858c39893254769e4859fe5a86 (patch) | |
tree | 43170d92add5ad47af5fbcd518b7cdba1e383b04 /templates/base.html | |
parent | *.html: Reindent (diff) | |
download | forge-32d164f08b3312858c39893254769e4859fe5a86.tar.gz forge-32d164f08b3312858c39893254769e4859fe5a86.tar.zst forge-32d164f08b3312858c39893254769e4859fe5a86.zip |
head.html: Add a common head template
I tried to define a base.html and extend it from there, but Go's
templating system doesn't support that.
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index 67bc7b6..0000000 --- a/templates/base.html +++ /dev/null @@ -1,26 +0,0 @@ -{{- define "base" -}} -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="stylesheet" href="/static/style.css" /> - <title>{{ block "title" . }}Lindenii Forge{{ end }}</title> - </head> - <body class="{{ block "body-class" . }}{{ end }}"> - <header> - <a id="site-title" href="/"> - {{ block "forge-title" . }} - Lindenii Forge - {{ end }} - </a> - <span id="header-userinfo" href="/"> - </span> - </header> - <main> - {{ block "main" . }} - {{ end }} - </main> - </body> -</html> -{{- end -}} |