gcg-website/layouts/partials/footer.html

112 lines
4.4 KiB
HTML
Raw Normal View History

2023-03-05 21:33:21 +01:00
<footer data-pagefind-ignore>
2023-06-11 21:13:11 +02:00
<div class="footer bg-footer section">
2022-03-18 13:35:57 +01:00
<div class="container">
<div class="row">
2023-07-29 13:16:25 +02:00
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 text-sm-start text-center">
2023-06-21 17:58:49 +02:00
<a class="logo-footer" href="{{ .Site.BaseURL | relURL }}"><img class="mb-4" height="60" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}"></a>
2023-06-09 20:35:28 +02:00
<ul class="list-unstyled text-white text-opacity-50">
2023-07-29 13:16:25 +02:00
<li class="mb-3">
2022-03-18 13:35:57 +01:00
<a href="{{ .Site.Params.route_link }}">{{ .Site.Params.address | markdownify }}</a>
</li>
2023-07-29 13:16:25 +02:00
<li class="mb-3"><a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email_pretty | markdownify }}</a></li>
<li class="mb-3"><a href="tel:{{ .Site.Params.mobile }}">{{ .Site.Params.mobile | markdownify }}</a></li>
<li class="mb-3">
2023-06-21 17:58:49 +02:00
<a href="{{ .Site.Params.impressumURL | absURL }}">Impressum</a>
2022-03-18 13:35:57 +01:00
</li>
2023-07-29 13:16:25 +02:00
<li class="mb-3">
2023-06-21 17:58:49 +02:00
<a href="{{ .Site.Params.dseURL | absURL }}">Datenschutz</a>
</li>
2022-03-18 13:35:57 +01:00
</ul>
</div>
2023-07-29 13:16:25 +02:00
<div class="col-lg-2 col-sm-6 mb-4 mb-md-0 text-sm-start text-center">
<h4 class="text-white mb-4 text-uppercase">Links</h4>
2022-03-18 13:35:57 +01:00
<ul class="list-unstyled">
{{ range .Site.Menus.footer }}
2023-06-21 17:58:49 +02:00
<li class="mb-3"><a class="text-white text-opacity-50" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
2022-03-18 13:35:57 +01:00
{{ end }}
</ul>
</div>
2023-07-29 13:16:25 +02:00
<div class="col-lg-3 col-sm-6 mb-4 mb-md-0 text-sm-start text-center">
<h4 class="text-white mb-4 text-uppercase">Ganztagsangebote</h4>
2022-03-18 13:35:57 +01:00
<ul class="list-unstyled">
2022-12-31 18:13:07 +01:00
{{ range first 5 (where .Site.RegularPages "Type" "ganztagsangebote" | shuffle)}}
2023-06-09 20:35:28 +02:00
<li class="mb-3"><a class="text-white text-opacity-50" href="{{ .Permalink }}">{{ .Title }}</a></li>
2022-03-18 13:35:57 +01:00
{{ end }}
</ul>
</div>
2023-07-29 13:16:25 +02:00
<div class="col-lg-3 col-sm-6 mb-4 mb-md-0 text-sm-start text-center">
<h4 class="text-white mb-4 text-uppercase">Aktuelles</h4>
2022-03-18 13:35:57 +01:00
<ul class="list-unstyled">
2023-02-08 16:03:47 +01:00
{{ range first 5 (where .Site.RegularPages "Type" "post")}}
2023-06-09 20:35:28 +02:00
<li class="mb-3"><a class="text-white text-opacity-50" href="{{ .Permalink }}">{{ .Title | truncate 35 }}</a></li>
2022-03-18 13:35:57 +01:00
{{ end }}
</ul>
</div>
</div>
</div>
</div>
<div class="copyright py-4 bg-footer">
<div class="container">
<div class="row">
<div class="col-sm-7 text-sm-start text-center">
2024-01-01 18:06:00 +01:00
<p class="mb-0 text-white text-opacity-50">Copyright &copy; {{ time.Format "2006" now }} {{ .Site.Params.copyright | markdownify | emojify }}</p>
2022-03-18 13:35:57 +01:00
</div>
2023-06-21 17:58:49 +02:00
<div class="col-sm-5 text-sm-end text-center">
2022-03-18 13:35:57 +01:00
<ul class="list-inline">
{{ range .Site.Params.social }}
2024-01-20 20:09:43 +01:00
<li class="list-inline-item"><a class="d-inline-block p-2" href="{{ .link | safeURL }}"><span class="text-primary">{{ partial "mdi" .icon }}</span></a></li>
2022-03-18 13:35:57 +01:00
{{ end }}
</ul>
</div>
</div>
</div>
</div>
</footer>
2023-01-14 17:31:54 +01:00
{{ range .Site.Params.plugins.js }}
<script src="{{ . | absURL }}"></script>
2022-03-18 13:35:57 +01:00
{{ end }}
2024-01-20 15:47:22 +01:00
<script src="/pagefind/pagefind-ui.js" type="text/javascript"></script>
<script>
($ => {
$(window).on('DOMContentLoaded', () => {
new PagefindUI({
element: "#search",
translations: {
placeholder: "Suchen...",
zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden",
clear_search: "Löschen"
}
});
$('#pagefind-search').on('shown.bs.modal', () => {
$('.pagefind-ui__search-input').focus();
});
});
})(jQuery);
</script>
<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() {
var u="https://analytics.cantorgymnasium.de/";
_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>
2023-06-11 21:13:11 +02:00
{{ $script := resources.Get "js/script.js" | minify }}
<script src="{{ $script.Permalink }}"></script>
<script>
2023-06-11 21:13:11 +02:00
new LazyLoad();
</script>