gcg-website/layouts/partials/head.html

57 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2022-03-18 13:35:57 +01:00
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
{{ range .Site.Params.plugins.css }}
2023-01-14 17:31:54 +01:00
<link rel="stylesheet" href="{{ . | absURL }}">
2022-03-18 13:35:57 +01:00
{{ end }}
2023-06-11 21:13:11 +02:00
{{ $style := resources.Get "css/style.css" | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
2022-03-18 13:35:57 +01:00
<link rel="shortcut icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `media/favicon.png` | absURL }}" type="image/x-icon">
2023-02-28 08:37:51 +01:00
2024-01-21 14:18:25 +01:00
{{ if eq .Page.RelPermalink "/" }}
<link rel="preload" fetchpriority="high" as="image" href="/media/home/banner.webp" type="image/webp">
{{ else }}
<link rel="preload" fetchpriority="high" as="image" href="/media/titelbild.webp" type="image/webp">
{{ end }}
2024-01-03 11:40:48 +01:00
{{ range .Site.Params.plugins.head_js }}
<script src="{{ . | absURL }}" type="text/javascript"></script>
{{ end }}
2024-01-21 14:18:25 +01:00
2024-01-20 20:28:20 +01:00
<!-- jquery passive listener fixes -->
<script>
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ) {
this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
}
};
jQuery.event.special.touchmove = {
setup: function( _, ns, handle ) {
this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
}
};
jQuery.event.special.wheel = {
setup: function( _, ns, handle ){
this.addEventListener("wheel", handle, { passive: true });
}
};
jQuery.event.special.mousewheel = {
setup: function( _, ns, handle ){
this.addEventListener("mousewheel", handle, { passive: true });
}
};
</script>
2024-01-03 11:40:48 +01:00
2024-09-15 22:26:56 +02:00
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
2022-03-18 13:35:57 +01:00
</head>