44 lines
1.9 KiB
HTML
Executable file
44 lines
1.9 KiB
HTML
Executable file
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<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 }}
|
|
|
|
<!-- Button Generator - only load if page content contains button-generator shortcode -->
|
|
{{ if or (findRE "{{<\\s*button-generator" .RawContent) (findRE "{{%\\s*button-generator" .RawContent) }}
|
|
<script src="{{ "js/gif.js" | relURL }}"></script>
|
|
{{ $buttonGenerator := resources.Get "js/button-generator.js" | resources.Minify | resources.Fingerprint }}
|
|
<script src="{{ $buttonGenerator.RelPermalink }}" integrity="{{ $buttonGenerator.Data.Integrity }}"></script>
|
|
{{ end }}
|
|
</body>
|
|
</html>
|