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/head.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/head.html')
-rw-r--r-- | templates/head.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/head.html b/templates/head.html new file mode 100644 index 0000000..b2cd487 --- /dev/null +++ b/templates/head.html @@ -0,0 +1,5 @@ +{{- define "head_common" -}} +<meta charset="utf-8" /> +<meta name="viewport" content="width=device-width, initial-scale=1" /> +<link rel="stylesheet" href="/static/style.css" /> +{{- end -}} |