diff --git a/assets/css/style.css b/assets/css/style.css index 286db8a5..36afb1dd 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -13,9 +13,7 @@ --gcg-color-border: #dee2e6; --gcg-font-primary: "Ubuntu", sans-serif; --gcg-font-header: "Fira Sans", sans-serif; - --gcg-font-icon: "Material Design Icons"; - --gcg-icon-list: "\f0B2A"; - --gcg-icon-search: "\f0349"; + --gcg-icon-list: url('data:image/svg+xml,'); } /* typography */ @@ -298,7 +296,6 @@ textarea.form-control { .content ul li::before { position: absolute; content: var(--gcg-icon-list); - font-family: var(--gcg-font-icon); font-size: 14px; left: 0; top: 1px; @@ -396,6 +393,7 @@ details[open] summary { } .fb-tile-icon { + display: flex; font-size: 96px; } @@ -550,11 +548,9 @@ details[open] summary { background: var(--gcg-color-primary); color: white; font-size: 25px; - text-align: center; -} - -.play-btn i { - line-height: 80px; + display: flex; + align-items: center; + justify-content: center; } .play-btn::before { @@ -657,16 +653,6 @@ details[open] summary { font-weight: 600; } -.nav-item .nav-link.nav-search::before { - position: relative; - content: var(--gcg-icon-search); - font-family: var(--gcg-font-icon); - font-size: 14px; - left: 0; - top: 1px; - transition: 0.3s ease; -} - .nav-item::before { position: absolute; left: 0; @@ -702,7 +688,7 @@ link:focus, color: white; } -.navbar-expand-lg .navbar-nav .nav-link { +.navbar-expand-xl .navbar-nav .nav-link { padding: 40px 0px; } @@ -916,6 +902,17 @@ link:focus, } @media (max-width: 991px) { + .feature-blocks { + margin-top: 0; + padding: 50px; + } + + .feature-blocks h3 { + font-size: 25px; + } +} + +@media (max-width: 1199px) { .navigation { background: var(--gcg-color-secondary); } @@ -929,7 +926,7 @@ link:focus, background: var(--gcg-color-secondary) !important; } - .navbar-expand-lg .navbar-nav .nav-link { + .navbar-expand-xl .navbar-nav .nav-link { padding: 20px; } @@ -950,17 +947,6 @@ link:focus, text-align: center; } - .feature-blocks { - margin-top: 0; - padding: 50px; - } - - .feature-blocks h3 { - font-size: 25px; - } -} - -@media (max-width: 1199px) { .feature-blocks { padding-right: 50px; padding-left: 50px; @@ -1066,3 +1052,14 @@ link:focus, font-size: 1.5em; } } + +.hi-svg-inline { + vertical-align: -0.125rem; +} + +#chart-container { + position: relative; + height: 50vh; + overflow: hidden; +} + diff --git a/assets/js/script.js b/assets/js/script.js index 8dec63cb..757c53a7 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -1,4 +1,4 @@ -(function ($) { +(($) => { 'use strict'; // adapt header to height @@ -18,7 +18,7 @@ } // load scripts - $(window).on('load', function () { + $(window).on('load', () => { $('.preloader').fadeOut(100); adaptHeight(); if ($('#top-banner').length) { @@ -34,13 +34,6 @@ // sticky menu $(window).scroll(adaptHeight); - // background image - $('[data-background]').each(function () { - $(this).css({ - 'background-image': 'url(' + $(this).data('background') + ')' - }); - }); - // hero slider $('.hero-slider').slick({ autoplay: true, @@ -49,18 +42,15 @@ pauseOnHover: true, infinite: true, arrows: true, - prevArrow: '', - nextArrow: '', + prevArrow: '', + nextArrow: '', dots: true }); // venobox popup - $(document).ready(function () { - new VenoBox({ - selector: '.vb-video', - spinner: 'grid' - }); - new VenoBox({ + $(document).ready(() => { + $('.vb-video').venobox({ spinner: 'grid' }); + $('.vb-gallery').venobox({ selector: '.vb-gallery', numeration: true, infinigall: true, @@ -71,53 +61,73 @@ }); // filter - $(document).ready(function () { - var containerEl = document.querySelector('.filtr-container'); - if (containerEl) { - new Filterizr( - '.filtr-container', - { - layout: 'sameWidth', - gutterPixels: 10 - } - ); - } - // active changer - $('.filter-controls li').on('click', function () { - $('.filter-controls li').removeClass('active'); - $(this).addClass('active'); - }); + $(document).ready(() => { + if ($('.filter-container').length != 0) { + const shuffleInstance = new Shuffle($('.filter-container'), { + itemSelector: '.filter-item', + sizer: '.filter-sizer', + delimiter: ',' + }); + $('.filter-controls li').on('click',() => { + $('.filter-controls li').removeClass('active'); + $(this).addClass('active'); + shuffleInstance.filter($(this).data('filter')) + }); + } }); - // count up - function counter() { + // counter + $(window).on('scroll', () => { var oTop; if ($('.count').length !== 0) { oTop = $('.count').offset().top - window.innerHeight; } if ($(window).scrollTop() > oTop) { - $('.count').each(function () { - var $this = $(this), - countTo = $this.attr('data-count'); - $({ - countNum: $this.text() - }).animate({ - countNum: countTo - }, { - duration: 1000, - easing: 'swing', - step: function () { - $this.text(Math.floor(this.countNum)); - }, - complete: function () { - $this.text(this.countNum); - } - }); + $('.count').each(() => { + var $this = $(this), countTo = $this.attr('data-count'); + $({ countNum: $this.text() }).animate( + { countNum: countTo }, + { + duration: 1000, + easing: 'swing', + step: () => $this.text(Math.floor(this.countNum)), + complete: () => $this.text(this.countNum) + }); }); } - } - $(window).on('scroll', function () { - counter(); }); + + $(window).on('DOMContentLoaded', () => { + if (window.PagefindUI != undefined) { + new window.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(); + }); + } + }); + + // enable matomo analytics + var _paq = window._paq = window._paq || []; + _paq.push(["setDoNotTrack", true]); + _paq.push(["disableCookies"]); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (() => { + 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); + })(); + + new LazyLoad(); })(jQuery); diff --git a/config.yml b/config.yml index 50ae8778..c9d07e87 100644 --- a/config.yml +++ b/config.yml @@ -20,43 +20,44 @@ params: address: Georg-Cantor-Gymnasium
Torstraße 13
06110 Halle (Saale) top_header: true email: schulleitung@cantor-gymnasium.de - email_label: schulleitungcantor-gymnasium.de + email_label: schulleitung(at)cantor-gymnasium.de description: Das Georg-Cantor-Gymnasium - eine mathematisch-naturwissenschaftliche Spezialschule in Halle (Saale). images: - media/zeichnung.webp impressumURL: pages/impressum dseURL: pages/datenschutz - copyright: "Georg-Cantor-Gymnasium Halle (Saale). Made with :heart: and [Hugo](https://gohugo.io)." + copyright: "Georg-Cantor-Gymnasium Halle (Saale). Made with :heart: and + [Hugo](https://gohugo.io)." plugins: css: - https://assets.cantorgymnasium.de/bootstrap/v5/css/bootstrap.min.css - https://assets.cantorgymnasium.de/slick/v1.8/slick.css - https://assets.cantorgymnasium.de/venobox/v2/dist/venobox.min.css - - https://assets.cantorgymnasium.de/fonts/mdi/v7/css/materialdesignicons.min.css - - https://assets.cantorgymnasium.de/fonts/fira/fira.css - - https://assets.cantorgymnasium.de/fonts/ubuntu/ubuntu.css + - https://assets.cantorgymnasium.de/fonts/fira/fira.min.css + - https://assets.cantorgymnasium.de/fonts/ubuntu/ubuntu.min.css + - /pagefind/pagefind-ui.css js: - https://assets.cantorgymnasium.de/bootstrap/v5/js/bootstrap.bundle.min.js - https://assets.cantorgymnasium.de/slick/v1.8/slick.min.js - https://assets.cantorgymnasium.de/lazyload/v17/dist/lazyload.min.js + - /pagefind/pagefind-ui.js head_js: - - https://assets.cantorgymnasium.de/echarts/v5/echarts.min.js - - https://assets.cantorgymnasium.de/jquery/v3.6/jquery.min.js + - https://assets.cantorgymnasium.de/jquery/v3.7/jquery.min.js - https://assets.cantorgymnasium.de/venobox/v2/dist/venobox.min.js - - https://assets.cantorgymnasium.de/filterizr/v2/dist/vanilla.filterizr.min.js + - https://assets.cantorgymnasium.de/shuffle/v6/shuffle.min.js social: - title: YouTube - icon: mdi mdi-youtube + icon: youtube link: https://www.youtube.com/@cantornews - title: Twitter - icon: mdi mdi-twitter + icon: twitter link: https://twitter.com/cantor_news - title: Instagram - icon: mdi mdi-instagram + icon: instagram link: https://instagram.com/cantor.news - title: Facebook - icon: mdi mdi-facebook + icon: facebook link: https://facebook.com/cantor.news preloader: enable: true @@ -220,7 +221,7 @@ menu: - parent: Für Schüler und Eltern name: Förderverein URL: pages/foerderverein - weight: 6 + weight: 5 hasChildren: false params: external: false @@ -228,13 +229,13 @@ menu: - parent: Für Schüler und Eltern name: Schülervertretung URL: pages/schuelervertretung - weight: 7 + weight: 6 hasChildren: false params: external: false separator: false - name: Elternvertretung - weight: 8 + weight: 7 URL: pages/elternvertretung parent: Für Schüler und Eltern hasChildren: false @@ -248,6 +249,12 @@ menu: params: external: false separator: false + - name: Schülerzeitung + weight: 9 + parent: Für Schüler und Eltern + URL: https://schuelerzeitung-gcg.de + params: + external: true footer: - name: Termine URL: termine @@ -268,3 +275,6 @@ privacy: privacyEnhanced: true vimeo: enableDNT: true +module: + imports: + - path: github.com/hugomods/icons/vendors/mdi diff --git a/content/alumninetzwerk/_index.md b/content/alumninetzwerk/_index.md index 6c320f2e..577013bd 100644 --- a/content/alumninetzwerk/_index.md +++ b/content/alumninetzwerk/_index.md @@ -1,5 +1,6 @@ --- title: Alumninetzwerk +draft: true aliases: - /schulchronik/pages/alumninetzwerk - /chronikseiten/alumninetzwerk diff --git a/content/blog/eindrucke-vom-tag-der-offenen-tur.md b/content/blog/eindrucke-vom-tag-der-offenen-tur.md deleted file mode 100644 index aea289c4..00000000 --- a/content/blog/eindrucke-vom-tag-der-offenen-tur.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: "Eindrücke vom Tag der offenen Tür " -date: 2023-11-27T13:12:17.714+01:00 -draft: true -image: /media/image.webp -author: - - denys-konovalov -categories: - - Veranstaltungen -subjects: [] -tags: - - "2023" - - tdot -type: post ---- -Am Samstag, dem 25.11.2023, fand nach zahlreichen Vorbereitungen der diesjährige Tag der offenen Tür statt, mit welchem vor allem zukünftigen Schülern und Eltern die Möglichkeit geboten wurde, sich im Schulgebäude umzuschauen und über die vielfältigen Angebote unserer Schule zu informieren. - -Trotz des momentan hohen Krankenstandes gelang es dennoch, ein aufregendes Programm zu gestalten - von spannenden Chemieexperimenten bis zu kreativen Theater- und Musikvorstellungen war alles geboten. - -Während unsere jungen Besucherinnen und Besucher von Schülerlotsen aus unseren 5. und 6. Klassen durch das Schulhaus geführt wurden und in verschiedensten Räumen das Interessanteste aus allen Bereichen kennenlernen konnten, bestand für Eltern die einzigartige Möglichkeit sich mit Lehrerinnen und Lehrern zu unterhalten, das Aufnahmeverfahren näher kennenzulernen und einen allgemeinen Eindruck von der Schule zu erhalten. - -Besonders gefreut haben uns auch in diesem Jahr wieder die vielen ehemaligen Lehrer und Schüler, welche sich weiterhin über das aktuelle Schulleben auf dem Laufen halten und in den Gängen anzutreffen waren. - -Für alle, die am Tag der offenen Tür leider nicht teilnehmen konnte, steht mir dem [digitalen Schulrundgang](https://vr.cantorgymnasium.de/) weiterhin eine Möglichkeit zur Verfügung, sich etwas im Schulhaus umzusehen (Hinweis: Einige Aufnahmen und Inhalte können inzwischen veraltet sein). - -Für alle Interessenten verweisen wir zudem noch einmal auf unser Aufnahmeverfahren: - - - -{{< card title="Aufnahmeverfahren" link="/anmeldung/" >}} - - diff --git a/content/blog/einladung-weihnachtskonzert-2023.md b/content/blog/einladung-weihnachtskonzert-2023.md index 43c33a55..4e890112 100644 --- a/content/blog/einladung-weihnachtskonzert-2023.md +++ b/content/blog/einladung-weihnachtskonzert-2023.md @@ -2,7 +2,7 @@ title: Einladung Weihnachtskonzert 2023 date: 2023-11-04T23:10:45.890+01:00 draft: false -image: /media/gcgweihnachten.png +image: /media/blog/weihnachten.webp author: - herr-berger categories: diff --git a/content/blog/weihnachtstraditionen-2023.md b/content/blog/weihnachtstraditionen-2023.md index 01b34ae2..c744dfd8 100644 --- a/content/blog/weihnachtstraditionen-2023.md +++ b/content/blog/weihnachtstraditionen-2023.md @@ -2,7 +2,7 @@ title: Weihnachtstraditionen 2023 date: 2023-12-22T23:39:48.861+01:00 draft: false -image: /media/gcgweihnachten.png +image: /media/blog/weihnachten.webp author: - herr-berger - frau-schulz diff --git a/content/blog/wettbewerbserfolge-am-jahresende.md b/content/blog/wettbewerbserfolge-am-jahresende.md index 2e823af4..8ae9e3c2 100644 --- a/content/blog/wettbewerbserfolge-am-jahresende.md +++ b/content/blog/wettbewerbserfolge-am-jahresende.md @@ -2,7 +2,7 @@ title: Wettbewerbserfolge am Jahresende date: 2023-12-15T10:36:32.078+01:00 draft: false -image: /media/blog/Sj2023_2024/vlw2023.jpg +image: /media/blog/Sj2023_2024/vlw2023.webp author: - herr-berger categories: diff --git a/content/chronikseiten/abiturdurchschnitte.md b/content/chronikseiten/abiturdurchschnitte.md index 8c84536f..5c53fbef 100644 --- a/content/chronikseiten/abiturdurchschnitte.md +++ b/content/chronikseiten/abiturdurchschnitte.md @@ -10,14 +10,8 @@ type: pages aliases: - /schulchronik/pages/abiturdurchschnitte --- - +
- - \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/ganztag.html b/layouts/partials/ganztag.html index 65ac5a33..70d4b032 100644 --- a/layouts/partials/ganztag.html +++ b/layouts/partials/ganztag.html @@ -1,8 +1,8 @@
{{ .Title }}
-
{{ .Params.schedule }}
-
{{ .Params.class }}
+
{{ partial "mdi" "calendar-today" }}{{ .Params.schedule }}
+
{{ partial "mdi" "crowd"}}{{ .Params.class }}

{{ .Title }}

Mehr anzeigen
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 24bd1373..a977e28f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,59 +17,40 @@ + {{ if eq .Page.RelPermalink "/" }} + + {{ else }} + + {{ end }} + {{ range .Site.Params.plugins.head_js }} {{ end }} - - - - + + - - {{ partial "opengraph" . }} {{ partial "twitter" . }} - - - \ No newline at end of file diff --git a/layouts/partials/header-contest.html b/layouts/partials/header-contest.html index d79b47e0..b8115774 100644 --- a/layouts/partials/header-contest.html +++ b/layouts/partials/header-contest.html @@ -5,7 +5,7 @@ {{ end }}
- + {{ partial "mdi" "crowd"}}
Klassen

{{ .Params.class }}

diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7a983034..5993a5d6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,8 +6,9 @@
@@ -20,7 +21,7 @@
  • - E-Mail: {{ .Site.Params.email_label | safeHTML }} + E-Mail: {{ replace .Site.Params.email_label "(at)" (partial "mdi" "at") | safeHTML }}
  • @@ -31,7 +32,7 @@ {{ end }}