33 lines
1.5 KiB
HTML
Executable file
33 lines
1.5 KiB
HTML
Executable file
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="theme-color" content="#00ff00" />
|
|
<title>
|
|
{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ .
|
|
}}{{ end }}{{ end }}
|
|
</title>
|
|
<meta name="viewport" content="width=device-width,minimum-scale=1" />
|
|
{{ hugo.Generator }} {{ $sass := resources.Get "sass/style.scss" }} {{
|
|
$style := $sass | css.Sass | resources.Minify | resources.Fingerprint }}
|
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
|
|
|
{{ range .Site.Params.custom_css }}
|
|
<link rel="stylesheet" href="{{ relURL ($.Site.BaseURL) }}{{ . }}" />
|
|
{{ end }} {{ block "favicon" . }} {{ partial "site-favicon.html" . }} {{ end
|
|
}}
|
|
|
|
<!-- Chart.js for graphs - only load if page content contains graph shortcode -->
|
|
{{ if or (findRE "{{<\\s*graph" .RawContent) (findRE "{{%\\s*graph" .RawContent) }}
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js" integrity="sha384-9nhczxUqK87bcKHh20fSQcTGD4qq5GhayNYSYWqwBkINBhOfQLg/P5HG5lF1urn4" crossorigin="anonymous"></script>
|
|
{{ end }}
|
|
</head>
|
|
|
|
<body>
|
|
{{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
|
|
<main role="main">{{ block "main" . }}{{ end }}</main>
|
|
{{ block "footer" . }}{{ partial "site-footer.html" . }}{{ end }} {{ block
|
|
"scripts" . }}{{ partial "site-scripts.html" . }}{{ end }}
|
|
</body>
|
|
</html>
|