aboutsummaryrefslogtreecommitdiff
path: root/templates/page/base.gohtml
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:24:31 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-09 21:24:31 +0100
commitb637ff02f660b109d419d99df64c81940f7a8290 (patch)
treeb2bad3e918b1de186d6169ac9b2d299717e44eb2 /templates/page/base.gohtml
parentf4da86b98e43eb411c16ec85c21171e81b6b33aa (diff)
feat(http): init golatt
Diffstat (limited to 'templates/page/base.gohtml')
-rw-r--r--templates/page/base.gohtml23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/page/base.gohtml b/templates/page/base.gohtml
new file mode 100644
index 0000000..2de2ba4
--- /dev/null
+++ b/templates/page/base.gohtml
@@ -0,0 +1,23 @@
+{{define "base"}}
+ <!doctype html>
+ <html lang="fr" prefix="og: https://ogp.me/ns#">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <link rel="shortcut icon" href="{{getStaticPath "logo.png"}}" type="image/png" />
+ <title>{{ .Title }}</title>
+ <link rel="stylesheet" href="{{getAssetPath "styles.css"}}" />
+ {{template "opengraph-base" .SEO}}
+ </head>
+ <body>
+ {{if .Data.HasNav}}
+ {{template "navbar" .}}
+ {{end}}
+ {{template "body" .}}
+ {{if .Data.HasFooter}}
+ {{template "footer" .}}
+ {{end}}
+ <script type="module" src="{{getAssetPath "index.js"}}" defer></script>
+ </body>
+ </html>
+{{end}} \ No newline at end of file