gcg-website/layouts/partials/head.html

75 lines
2.5 KiB
HTML
Raw 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-03 11:40:48 +01:00
{{ range .Site.Params.plugins.head_js }}
<script src="{{ . | absURL }}" type="text/javascript"></script>
{{ end }}
2023-09-23 18:01:28 +02:00
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/pagefind/pagefind-ui.js" type="text/javascript"></script>
2023-03-05 21:33:21 +01:00
<script>
2024-01-03 11:40:48 +01:00
($ => {
$(window).on('DOMContentLoaded', () => {
2023-04-23 10:42:34 +02:00
new PagefindUI({
element: "#search",
translations: {
placeholder: "Suchen...",
zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden",
clear_search: "Löschen"
}
2024-01-03 11:40:48 +01:00
});
$('#search').addEventListener('shown.bs.modal', () => {
$('.pagefind-ui__search-input input').focus();
});
});
2024-01-03 11:40:48 +01:00
})(jQuery);
2023-03-05 21:33:21 +01:00
</script>
2023-01-03 11:55:46 +00:00
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
2023-06-11 21:13:11 +02:00
var u="https://analytics.cantorgymnasium.de/";
2023-01-03 11:55:46 +00:00
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
{{ partial "opengraph" . }}
{{ partial "twitter" . }}
2022-07-03 09:22:28 +00:00
2022-03-18 13:35:57 +01:00
</head>
2023-03-05 21:33:21 +01:00
<div id="pagefind-search" class="modal fade" data-pagefind-ignore>
2023-03-05 21:33:21 +01:00
<div class="modal-dialog modal-xl modal-dialog-scrollable modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
2023-04-23 10:42:34 +02:00
<div id="search"></div>
2023-03-05 21:33:21 +01:00
</div>
</div>
</div>
</div>