aboutsummaryrefslogtreecommitdiff
path: root/templates/page/base.gohtml
blob: 2de2ba4a4384f4ae25794ea7e0614078d9166a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}}