aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/layouts/_default/baseof.html
blob: 2159326c1465a63537de13ba330899ede0876e2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="{{- site.Language.Lang -}}">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{{ .Title }}</title>
        <link rel="stylesheet" href="/css/styles.css">
        {{- partial "page_info.html" . -}}
        <link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
        <link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
        <link rel="manifest" href="/site.webmanifest">
        {{ with .OutputFormats.Get "rss" -}}
        {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
        {{ end }}
        {{ if .Params.math }}
            {{- partial "katex.html" . -}}
        {{ end }}
    </head>
    <body>
        <header>
            {{- partial "header.html" . -}}
            {{- block "header" . }}
            <h1>{{ .Title | markdownify }}</h1>
            {{- end }}
        </header>
        <main>
            {{- block "main" . }}
                {{ .Content }}
            {{- end }}
        </main>
        <hr />
        <footer>
            {{- block "footer" . }}{{- end }}
            {{- partial "footer.html" . -}}
        </footer>
    </body>
</html>