ccchh-website/themes/ccchh/layouts/partials/head.html

35 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2024-01-27 22:25:42 +01:00
{{- $cssOptionsMain := dict "transpiler" "libsass" "targetPath" "css/style.css" -}}
{{- $cssOptionsPico := dict "transpiler" "libsass" "targetPath" "css/pico.css" -}}
{{- $jsResources := resources.Match "js/*.js" }}
2023-10-02 12:08:18 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
{{- partial "robots.html" . -}}
2024-02-04 22:33:36 +01:00
<link rel="apple-touch-icon" sizes="180x180" href="{{ relURL "apple-touch-icon.png" }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ relURL "favicon-32x32.png" }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ relURL "favicon-16x16.png" }}">
<link rel="manifest" href="{{ relURL "site.webmanifest" }}">
<link rel="mask-icon" href="{{ relURL "safari-pinned-tab.svg" }}" color="#000000">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
2024-03-02 22:31:28 +01:00
{{ with resources.Get "sass/pico-ccchh.scss" | toCSS $cssOptionsPico | minify | fingerprint -}}
2024-01-27 22:25:42 +01:00
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{ with resources.Get "sass/main.scss" | toCSS $cssOptionsMain | minify | fingerprint -}}
2023-10-02 12:08:18 +02:00
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
2024-02-04 22:33:36 +01:00
<link rel="stylesheet" href="{{ relURL "thirdparty/fontawesome6/css/all.min.css" }}" crossorigin="anonymous">
2023-10-02 12:08:18 +02:00
{{- range $jsResources }}
{{- with . | js.Build | minify | fingerprint }}
2023-10-02 12:08:18 +02:00
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
2023-10-02 12:08:18 +02:00
{{- range .AlternativeOutputFormats -}}
2023-11-04 22:26:11 +01:00
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
2023-11-03 20:36:12 +01:00
{{- end }}
2023-10-02 12:08:18 +02:00
<title>{{ .Title }}</title>