diff --git a/data/de/ausblick.yml b/data/de/ausblick.yml new file mode 100644 index 0000000..fab0b43 --- /dev/null +++ b/data/de/ausblick.yml @@ -0,0 +1,16 @@ +enable: true +title: Ausblick auf die Woche +author: Frau Felke +image: /media/ausblick.webp +content: > + In dieser Woche begrüßen wir in der 10. Klasse sechs französische + Schüler aus dem Lycée „Aristide Briand“ Saint-Nazaire an unserer Schule. + + + Am Dienstag, dem 7. März 2023 wird der Mannschaftswettbewerb Mathematik Klasse 9 in Magdeburg durchgeführt. + + + Am Mittwoch, dem 8. März 2023, folgt der Mannschaftswettbewerb Chemie der Sekundarstufe II in Jena. + + + Am Donnerstag, dem 9. März 2023, finden die Landesphysikolympiade in Magdeburg und der Regionalwettbewerb „Jugend forscht“ in Greppin statt. diff --git a/data/de/homepage.yml b/data/de/homepage.yml index 3ea8cf5..016f623 100644 --- a/data/de/homepage.yml +++ b/data/de/homepage.yml @@ -118,7 +118,7 @@ about: link: https://vr.cantorgymnasium.de/tour/ blog: enable: true - title: Aktuelle Beiträge + title: Aktuelles success_banner: enable: true image: media/home/success_banner.webp @@ -192,6 +192,8 @@ info: produktives Gymnasium mit mathematisch-naturwissenschaftlichem Schwerpunkt und dem Gütesiegel \"Begabungsfördernde Schule\" vom Landesinstitut für Schulqualität und Lehrerbildung. + + {{< card link="/schulchronik/" title="Schulchronik" >}} video_link: https://www.youtube.com/watch?v=v2ovvOmv-xw termine: enable: true diff --git a/layouts/index.html b/layouts/index.html index 1499ec9..e8ee70b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -95,6 +95,12 @@ {{ end }} {{ end }} +{{ if $data.ausblick.enable }} +{{ with $data.ausblick }} + {{ partial "chronik-modal" (dict "id" (md5 .title) "title" .title "content" .content) }} +{{ end }} +{{ end }} + {{ if $data.homepage.blog.enable }}
@@ -104,7 +110,22 @@
- {{ range first 3 (where .Site.RegularPages "Type" "post")}} +
+
+ {{ $data.ausblick.title }} +
+ +

{{ $data.ausblick.title }}

+

{{ $data.ausblick.content | truncate 100 }}

+ +
+
+
+ {{ range first 2 (where .Site.RegularPages "Type" "post")}}
{{ .Render "post" }}
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index c4f59b4..8c81e8d 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -1,5 +1,5 @@
-
+

{{ .Get "title" }}

{{ i18n "show_more"}} diff --git a/static/admin/config.yml b/static/admin/config.yml index 70938ec..a309b28 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -389,6 +389,22 @@ collections: required: true fields: - {label: "Kategorie", name: "category", widget: "string", required: true} + - name: "ausblick-config" + label: "Ausblick auf die Woche" + file: "data/de/ausblick.yml" + format: yml + fields: + - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} + - {label: "Titel", name: "title", widget: "string", required: false} + - label: "Autor" + name: "author" + widget: "relation" + collection: "author" + search_fields: ["title"] + value_field: "title" + required: false + - {label: "Titelbild", name: "image", widget: "image", required: false, media_library: { config: { max_file_size: 2048000 } } } + - {label: "Inhalt", name: "content", widget: "markdown", required: false} - name: "index-pages" icon: "page" label: "Hauptseiten" diff --git a/static/media/ausblick.webp b/static/media/ausblick.webp new file mode 100644 index 0000000..e122c6e Binary files /dev/null and b/static/media/ausblick.webp differ