diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 17:00:15 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 17:00:15 +0800 |
commit | 2f39f46dfcb14e7800af3a3ed4ae419d5629775a (patch) | |
tree | 06f004969c76f0250c0b7664973ef08c9b802d0a | |
parent | *.go: Reformat (diff) | |
download | forge-2f39f46dfcb14e7800af3a3ed4ae419d5629775a.tar.gz forge-2f39f46dfcb14e7800af3a3ed4ae419d5629775a.tar.zst forge-2f39f46dfcb14e7800af3a3ed4ae419d5629775a.zip |
base.html: Initialize for later use
Diffstat (limited to '')
-rw-r--r-- | templates/base.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..67bc7b6 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,26 @@ +{{- 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 -}} |