diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 96eedd82..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ -image: registry.gitlab.com/pages/hugo/hugo_extended:latest - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -pages: - script: - - hugo --gc --minify - - find public -type f -print0 | xargs -0 gzip -9 -k - artifacts: - paths: - - public - rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - interruptible: true diff --git a/config.yml b/config.yml index 32132d3e..ef70f852 100644 --- a/config.yml +++ b/config.yml @@ -113,7 +113,7 @@ menu: hasChildren: false - parent: Schule name: Begabtenförderung - URL: begabtenfoerderung + URL: begabte weight: 10 hasChildren: false - weight: 3 diff --git a/content/german/begabtenfoerderung/_index.md b/content/german/begabte/_index.md similarity index 100% rename from content/german/begabtenfoerderung/_index.md rename to content/german/begabte/_index.md diff --git a/content/german/begabtenfoerderung/fruehstudium.md b/content/german/begabte/fruehstudium.md similarity index 99% rename from content/german/begabtenfoerderung/fruehstudium.md rename to content/german/begabte/fruehstudium.md index 8994292c..231159ea 100644 --- a/content/german/begabtenfoerderung/fruehstudium.md +++ b/content/german/begabte/fruehstudium.md @@ -7,7 +7,7 @@ image: "" category: Naturwissenschaften class: 10 - 12 Klasse web_url: null -type: begabtenfoerderung +type: begabte --- Die Martin-Luther-Universität Halle-Wittenberge bietet seit dem Wintersemester 2006/07 die Möglichkeit, besonders begabte und leistungsstarke Schülerinnen und Schüler der Stufen 11 und 12 als Frühstudierende an Vorlesungen und Übungen in bestimmten Studienfächern teilnehmen und dort die entsprechenden Leistungsnachweise erwerben zu lassen. diff --git a/content/german/begabtenfoerderung/konzept.md b/content/german/begabte/konzept.md similarity index 98% rename from content/german/begabtenfoerderung/konzept.md rename to content/german/begabte/konzept.md index d47c1879..913f42bd 100644 --- a/content/german/begabtenfoerderung/konzept.md +++ b/content/german/begabte/konzept.md @@ -7,7 +7,7 @@ image: "" category: fächerübergreifend class: 5 - 12 Klasse web_url: null -type: begabtenfoerderung +type: begabte --- ### Auszug aus dem Begabtenförderungskonzept unserer Schule: diff --git a/content/german/begabtenfoerderung/sfz.md b/content/german/begabte/sfz.md similarity index 76% rename from content/german/begabtenfoerderung/sfz.md rename to content/german/begabte/sfz.md index c7939ee2..46e7c09e 100644 --- a/content/german/begabtenfoerderung/sfz.md +++ b/content/german/begabte/sfz.md @@ -3,16 +3,16 @@ title: Schülerforschungszentrum draft: false bg_image: /media/backgrounds/page-title.webp description: "" -image: /media/begabtenfoerderung/sfz.webp +image: /media/begabte/sfz.webp category: Naturwissenschaften class: 5 - 12 Klasse web_url: https://sfz-halle.de/ -type: begabtenfoerderung +type: begabte --- Das Schülerforschungszentrum wurde auf Initiative von ehemaligen und aktiven Lehrern der beiden Gymnasien „Georg Cantor“ und „Christian Wolff“ gegründet, um eine individuelle Betreuung von Forschungsarbeiten (meist im Rahmen des Wettbewerbs „Jugend forscht/Schüler experimentieren“) zu gewährleisten. -{{< download title="Broschüre des SFZ" link="/media/begabtenfoerderung/broschuere_sfz.pdf" >}} +{{< download title="Broschüre des SFZ" link="/media/begabte/broschuere_sfz.pdf" >}} diff --git a/content/german/begabtenfoerderung/spezialistenlager.md b/content/german/begabte/spezialistenlager.md similarity index 90% rename from content/german/begabtenfoerderung/spezialistenlager.md rename to content/german/begabte/spezialistenlager.md index 431b7546..289f53ce 100644 --- a/content/german/begabtenfoerderung/spezialistenlager.md +++ b/content/german/begabte/spezialistenlager.md @@ -3,11 +3,11 @@ title: Spezialistenlager draft: false bg_image: /media/backgrounds/page-title.webp description: "" -image: /media/begabtenfoerderung/image.webp +image: /media/begabte/image.webp category: Mathematik class: 5 - 12 Klasse web_url: null -type: begabtenfoerderung +type: begabte --- Im Rahmen der Förderung begabter Schüler wird jährlich am Georg-Cantor-Gymnasium ein Spezialistenlager durchgeführt. In der Jugendherberge Frauenstein werden die zukünftigen Teilnehmer der von den besten Mathematiklehrern eine Woche darauf vorbereitet und gelehrt. diff --git a/layouts/_default/begabtenfoerderung.html b/layouts/_default/begabte.html similarity index 85% rename from layouts/_default/begabtenfoerderung.html rename to layouts/_default/begabte.html index 05afc3d2..4ec60414 100644 --- a/layouts/_default/begabtenfoerderung.html +++ b/layouts/_default/begabte.html @@ -2,7 +2,7 @@ {{ if .Params.Image }} {{ .Title }} {{ else }} - {{ .Title }} + {{ .Title }} {{ end }}
- {{ $related := (where .Site.RegularPages "Type" "begabtenfoerderung") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} + {{ $related := (where .Site.RegularPages "Type" "begabte") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}} {{ range first 3 $related }}
- {{ .Render "begabtenfoerderung"}} + {{ .Render "begabte"}}
{{ end }}
diff --git a/static/.domains b/static/.domains deleted file mode 100644 index f87e354a..00000000 --- a/static/.domains +++ /dev/null @@ -1,4 +0,0 @@ -dev.cantorgymnasium.de -gcg.gitea-pages.cantorgymnasium.de -pages.gcg.gitea-pages.cantorgymnasium.de -pages.pages.gcg.gitea-pages.cantorgymnasium.de \ No newline at end of file diff --git a/static/.htaccess b/static/.htaccess deleted file mode 100644 index 0df1574c..00000000 --- a/static/.htaccess +++ /dev/null @@ -1,37 +0,0 @@ - -AddOutputFilterByType DEFLATE text/plain -AddOutputFilterByType DEFLATE text/html -AddOutputFilterByType DEFLATE text/xml -AddOutputFilterByType DEFLATE text/css -AddOutputFilterByType DEFLATE application/xml -AddOutputFilterByType DEFLATE application/xhtml+xml -AddOutputFilterByType DEFLATE application/rss+xml -AddOutputFilterByType DEFLATE application/javascript -AddOutputFilterByType DEFLATE application/x-javascript -AddOutputFilterByType DEFLATE image/jpg -AddOutputFilterByType DEFLATE image/png -AddOutputFilterByType DEFLATE image/gif -AddOutputFilterByType DEFLATE image/jpeg -AddOutputFilterByType DEFLATE image/svg+xml - - - -# Turn on the module. -ExpiresActive on -# Set the default expiry times. -ExpiresDefault "access plus 2 days" -ExpiresByType image/jpg "access plus 1 month" -ExpiresByType image/gif "access plus 1 month" -ExpiresByType image/jpeg "access plus 1 month" -ExpiresByType image/png "access plus 1 month" -ExpiresByType text/css "access plus 1 month" -ExpiresByType text/javascript "access plus 1 month" -ExpiresByType application/javascript "access plus 1 month" -ExpiresByType application/x-shockwave-flash "access plus 1 month" -ExpiresByType text/css "now plus 1 month" -ExpiresByType image/ico "access plus 1 month" -ExpiresByType image/x-icon "access plus 1 month" -ExpiresByType text/html "access plus 600 seconds" - - -Header Set Cache-Control "max-age=31536000" diff --git a/static/admin-gitea/config.yml b/static/admin-gitea/config.yml deleted file mode 100644 index b3ed75c5..00000000 --- a/static/admin-gitea/config.yml +++ /dev/null @@ -1,753 +0,0 @@ -backend: - name: gitea - repo: gcg/gcg-website - branch: master - api_root: https://git.cantorgymnasium.de/api/v1 - base_url: https://oauth.cantorgymnasium.de - commit_messages: - create: "{{slug}} in {{collection}} erstellt" - update: "{{slug}} in {{collection}} aktualisiert" - delete: "{{slug}} aus {{collection}} gelöscht" - uploadMedia: "{{path}} hochgeladen" - deleteMedia: "{{path}} gelöscht" - -local_backend: true - -media_folder: "static/media" -public_folder: "/media" -site_url: https://cantorgymnasium.de -display_url: https://cantorgymnasium.de -locale: "de" - -show_preview_links: false - -collections: - - name: "config" - icon: "settings" - label: "Konfiguration" - description: "Hier können die Basiseinstellungen der Website geändert werden." - editor: - preview: false - media_folder: "static/media" - public_folder: "media" - files: - - name: "homepage-config" - label: "Startseitenkonfiguration" - file: "data/de/homepage.yml" - media_folder: "/static/media/home" - public_folder: "media/home" - format: yml - fields: - - label: "Banner" - name: "top_banner" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Text", name: "text", widget: "string", required: false} - - {label: "Farbe", name: "color", widget: "color", required: false} - - {label: "Schriftfarbe", name: "font_color", widget: "color", required: false} - - {label: "Symbol", name: "icon", widget: "string", required: false, hint: "Liste unter https://fontawesome.com/search"} - - label: "Zeitschaltung" - name: temporarily - widget: "object" - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Startdatum", name: "start_date", widget: "datetime", required: false, date_format: "dd.MM.yyyy", time_format: false, format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"} - - {label: "Enddatum", name: "end_date", widget: "datetime", required: false, date_format: "dd.MM.yyyy", time_format: false, format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"} - - label: "Karusell" - name: "slider" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "image", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - label: "Elemente" - label_singular: "Element" - name: "slider_item" - widget: "list" - fields: - - {label: "Inhalt", name: "content", widget: "string", required: false} - - label: "Einblendeanimation" - name: "animation_in" - widget: "select" - options: ["left", "right", "up", "down"] - required: false - - label: "Ausblendeanimation" - name: "animation_out" - widget: "select" - options: ["left", "right", "up", "down"] - required: false - - label: "Button" - name: "button" - widget: "object" - required: false - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Bezeichnung", name: "label", widget: "string", required: false} - - {label: "Link", name: "link", widget: "string", required: false} - - label: "Logo-Banner (oben)" - name: "header_logos" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - label: "\"Über\"-Seite" - name: "about" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - {label: "Inhalt", name: "content", widget: "markdown", required: false} - - label: "Button" - name: "button" - widget: "object" - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Bezeichnung", name: "label", widget: "string", required: false} - - {label: "Link", name: "link", widget: "string", required: false} - - label: "Blog" - name: "blog" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string"} - - label: "Erfolge" - name: "success_banner" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Bild", name: "image", widget: "image", required: false} - - label: "Elemente" - name: "feature_item" - widget: "list" - fields: - - {label: "Bezeichnung", name: "name", widget: "string", required: false} - - {label: "Symbol", name: "icon", widget: "string", required: false, hint: "Liste unter https://fontawesome.com/search"} - - {label: "Bild", name: "image", widget: "image", required: false} - - {label: "Inhalt", name: "content", widget: "markdown", required: false} - - label: "Ganztagsangebote" - name: "ganztagsangebote" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - label: "Aktionsbutton" - name: "cta" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - {label: "Untertitel", name: "subtitle", widget: "string", required: false} - - label: "Button" - name: "button" - widget: "object" - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Bezeichnung", name: "label", widget: "string", required: false} - - {label: "Link", name: "link", widget: "string", required: false} - - label: "Informationen" - name: "info" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "image", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - {label: "Inhalt", name: "content", widget: "text", required: false} - - {label: "Video-Link", name: "video_link", widget: "string", required: false} - - label: "Termine" - name: "termine" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - label: "DigitalPakt-Banner" - name: "digitalpakt" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Titel", name: "title", widget: "string", required: false} - - {label: "Bild", name: "image", widget: "image", required: false} - - {label: "Inhalt", name: "content", widget: "markdown", required: false} - - label: "Logo-Banner (unten)" - name: "footer_logos" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - name: "hugo-config" - label: "Website-Konfiguration" - file: "config.yml" - fields: - - {label: "Website-URL", name: "baseURL", widget: "string"} - - {label: "Titel", name: "title", widget: "string"} - - {label: "Elemente je Seite", name: "paginate", widget: "number", value_type: "int"} - - {label: "Lände von Zusammenfassungen", name: "summaryLength", widget: "number", value_type: "int"} - - {label: "Standardsprache in Unterordner", name: "defaultContentLanguageInSubdir", widget: "boolean", required: false} - - {label: "Standardsprache", name: "defaultContentLanguage", widget: "string"} - - {label: "Emoji", name: "enableEmoji", widget: "boolean", required: false} - - {label: "robots.txt", name: "enableRobotsTxt", widget: "boolean", required: false} - - {label: "Zeitzone", name: "timeZone", widget: "string"} - - label: "Markdown-Enstellungen" - name: "markup" - widget: "object" - collapsed: true - summary: '{{fields.defaultMarkdownHandler}}' - fields: - - {label: "standardmäßiger Markdown-Handler", name: "defaultMarkdownHandler", widget: "select", options: ["blackfriday", "goldmark"]} - - label: "Goldmark-Einstellungen" - name: "goldmark" - widget: "object" - fields: - - label: "Renderer-Einstellungen" - name: "renderer" - widget: "object" - fields: [{label: "Unsicheren Inhalt erlauben", name: "unsafe", widget: "boolean", required: false}] - - label: "Einstellungen" - name: "params" - widget: "object" - collapsed: true - fields: - - label: "Plugins" - name: "plugins" - widget: "object" - fields: - - label: "CSS" - name: "css" - widget: "list" - fields: - - {label: "Link", name: "link", widget: "string"} - - label: "JavaScript" - name: "js" - widget: "list" - fields: - - {label: "Link", name: "link", widget: "string"} - - {label: "Logo", name: "logo", widget: "image"} - - {label: "Autor", name: "author", widget: "string"} - - {label: "Adresse", name: "address", widget: "string"} - - {label: "Route (Link)", name: "route_link", widget: "string"} - - {label: "Telefonnummer", name: "mobile", widget: "string"} - - {label: "E-Mail-Adresse", name: "email", widget: "string"} - - {label: "E-Mail-Adresse (UI-Ansicht)", name: "email_pretty", widget: "string"} - - {label: "Beschreibung", name: "description", widget: "string"} - - {label: "Kontakt-Titelleiste", name: "top_header", widget: "boolean"} - - label: "Vorschaubilder" - name: "images" - widget: "list" - required: false - fields: - - label: "Bild-Pfad" - name: "path" - widget: "string" - - {label: "Twitter-Konto", name: "twitter", widget: "string", required: false} - - label: "Ladeanimation" - name: "preloader" - widget: "object" - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - {label: "Logo", name: "preloader", widget: "image"} - - {label: "Ladeanimation", name: "loader", widget: "image"} - - label: "Soz. Netzwerke" - name: "social" - widget: "list" - fields: - - {label: "Bezeichnung", name: "title", widget: "string"} - - {label: "Symbol", name: "icon", widget: "string", hint: "Liste unter https://fontawesome.com/search"} - - {label: "Link", name: "link", widget: "string"} - - label: "Menü" - name: "menu" - widget: "object" - collapsed: true - fields: - - label: "Hauptmenü" - name: "main" - widget: "list" - fields: - - {label: "Titel", name: "name", widget: "string"} - - {label: "Position", name: "weight", widget: "number"} - - {label: "Untermenüs", name: "hasChildren", widget: "boolean", required: false} - - {label: "Link", name: "URL", widget: "string", required: false} - - {label: "Untermenü von", name: "parent", widget: "relation", collection: "config", file: "hugo-config", search_fields: ['menu.main.*.name'], display_fields: ['menu.main.*.name'], value_field: "menu.main.*.name", required: false} - - label: "unteres Menü" - name: "footer" - widget: "list" - fields: - - {label: "Titel", name: "name", widget: "string"} - - {label: "Link", name: "URL", widget: "string"} - - label: "Sprachen" - name: "languages" - widget: "object" - collapsed: true - fields: - - label: "Deutsch" - name: "de" - widget: "object" - fields: - - {label: "Abkürzung", name: "languageName", widget: "string"} - - {label: "Sprachcode", name: "languageCode", widget: "string"} - - {label: "Inhalt-Ordner", name: "contentDir", widget: "string"} - - {label: "Position", name: "weight", widget: "number"} - - {label: "Startseitenbezeichnung", name: "home", widget: "string"} - - {label: "Copyright-Hinweis", name: "copyright", widget: "string"} - - {label: "Impressum-Link", name: "impressumURL", widget: "string"} - - {label: "Datenschutz-Link", name: "dseURL", widget: "string"} - - label: "Privatsphäre" - name: "privacy" - widget: "object" - fields: - - label: "Disqus" - name: "disqus" - widget: "object" - fields: [{label: "Deaktivieren", name: "disable", widget: "boolean", required: false}] - - label: "Google Analytics" - name: "googleAnalytics" - widget: "object" - fields: [{label: "Deaktivieren", name: "disable", widget: "boolean", required: false}] - - label: "Instagram" - name: "instagram" - widget: "object" - fields: [{label: "Deaktivieren", name: "disable", widget: "boolean", required: false}] - - label: "Twitter" - name: "twitter" - widget: "object" - fields: [{label: "Tracking deaktivieren", name: "enableDNT", widget: "boolean", required: false}] - - label: "YouTube" - name: "youtube" - widget: "object" - fields: [{label: "Piped-Proxy", name: "privacyEnhanced", widget: "boolean", required: false}] - - label: "Vimeo" - name: "vimeo" - widget: "object" - fields: [{label: "Tracking deaktivieren", name: "enableDNT", widget: "boolean", required: false}] - - name: "index-pages" - icon: "page" - label: "Hauptseiten" - editor: - preview: true - frame: true - files: - - name: "blog-index" - label: "Aktuelles" - file: "content/german/blog/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "about-index" - label: "Über die Schule" - file: "content/german/about/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Bild", name: "image", widget: "image", default: "/media/image.webp", required: false} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - label: "Statistik" - name: "stats" - widget: "object" - collapsed: true - fields: - - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} - - label: "Elemente" - name: "zahlen" - widget: "list" - fields: - - {label: "Bezeichnung", name: "name", widget: "string", required: false} - - {label: "Zahl", name: "count", widget: "number", required: false} - - {label: "Text", name: "body", widget: "markdown"} - - name: "anmeldung-index" - label: "Anmeldung" - file: "content/german/anmeldung/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string", required: true} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - label: "Elemente" - label_singular: "Element" - name: "elements" - widget: "list" - fields: - - {label: "Titel", name: "title", widget: "string", required: true} - - {label: "Text", name: "content", widget: "markdown", required: true} - required: false - - {label: "Text", name: "body", widget: "markdown", required: false} - - name: "cantorpreis-index" - label: "Cantor-Preis" - file: "content/german/cantorpreis/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "contact-index" - label: "Kontakt" - file: "content/german/kontakt/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Text", name: "body", widget: "markdown"} - - name: "event-index" - label: "Termine" - file: "content/german/termine/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - label: Termine - label_singular: "Termin" - name: "events" - widget: "list" - fields: - - {label: "Titel", name: "title", widget: "string", required: true} - - {label: "Datum/Startdatum", name: "date", widget: "datetime", required: true, date_format: "dd.MM.yyyy", time_format: false, format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"} - - {label: "Enddatum", name: "enddate", widget: "datetime", required: false, date_format: "dd.MM.yyyy", time_format: false, format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", default: ""} - - {label: "Ort", name: "location", widget: "string", required: true} - - {label: "Beschreibung", name: "summary", widget: "string", required: false} - required: false - - name: "forms-index" - label: "Dokumente und Formulare" - file: "content/german/forms/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "ganztagsangebote-index" - label: "Ganztagsangebote" - file: "content/german/ganztagsangebote/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "wettbewerbe-index" - label: "Wettbewerbe" - file: "content/german/wettbewerbe/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "begabtenfoerderung-index" - label: "Begabtenförderung" - file: "content/german/begabtenfoerderung/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "abiturienten" - label: "Abiturienten" - file: "content/german/abiturienten/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "cantorfora" - label: "Cantorfora" - file: "content/german/cantorfora/_index.md" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Text", name: "body", widget: "markdown", required: false} - - name: "pages" - icon: "page" - label: "Zusatzseiten" - label_singular: "Zusatzseite" - folder: "content/german/pages" - create: true - editor: - preview: true - frame: true - slug: "{{slug}}" - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Type", name: "type", widget: "hidden", default: "pages"} - - {label: "Layout", name: "layout", widget: "hidden", default: "single.html"} - - label: "Aliase" - name: "aliases" - widget: "list" - fields: - - label: "Alias" - name: "alias" - widget: "string" - - {label: "Text", name: "body", widget: "markdown", required: false} - - name: "author" - icon: "user" - label: "Autoren" - label_singular: "Autoren" - folder: "content/german/author" - create: true - slug: "{{slug}}" - editor: - preview: false - media_folder: '/static/media/people' - public_folder: '/media/people' - fields: - - {label: "Name", name: "title", widget: "string"} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", default: "", required: false} - - {label: "Gravatar-E-Mail", name: "email", widget: "string", required: false} - - {label: "Foto", name: "image", widget: "image"} - - label: "Kontaktdaten" - label_singular: " " - name: "social" - widget: "list" - fields: - - {label: "Titel", name: "title", widget: "string", required: false} - - label: "Symbol" - name: "icon" - widget: "select" - options: - - { label: "YouTube", value: "fa-brands fa-youtube" } - - { label: "Twitter", value: "fa-brands fs-twitter" } - - { label: "Pinterest", value: "fa-brands fa-pinterest" } - - { label: "GitHub", value: "fa-brands fa-github" } - - { label: "GitLab", value: "fa-brands fa-gitlab" } - - { label: "Vimeo", value: "fa-brands fa-vimeo" } - - { label: "Instagram", value: "fa-brands fa-instagram" } - - { label: "Facebook", value: "fa-brands fa-facebook" } - - { label: "Linkedin", value: "fa-brands fa-linkedin" } - - { label: "E-Mail", value: "fa-solid fa-at" } - - { label: "TikTok", value: "fa-brands fa-tiktok" } - - { label: "Sonstige", value: "fa-solid fa-share-nodes" } - - {label: "Link", name: "link", widget: "string"} - required: false - - {label: "Beschreibung", name: "body", widget: "markdown"} - - name: "blog" - icon: "news" - label: "Aktuelles" - label_singular: "Blogbeitrag" - folder: "content/german/blog" - filter: {field: "type", value: "post"} - create: true - slug: "{{slug}}" - editor: - preview: true - frame: true - media_folder: '/static/media/blog' - public_folder: '/media/blog' - view_groups: - - label: Drafts - field: draft - sortable_fields: - fields: ['date', 'title'] - default: - field: date - direction: Descending - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Datum", name: "date", widget: "datetime", date_format: "dd/MM/yyyy", time_format: false} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", default: "", required: false} - - {label: "Beitragsbild", name: "image", widget: "image", default: "/media/image.webp"} - - label: "Beitragsautor" - name: "author" - widget: "relation" - collection: "author" - search_fields: ["title"] - value_field: "title" - - label: "Kategorien" - name: "categories" - widget: "list" - required: false - fields: - - label: "Kategorie" - name: "category" - widget: "string" - - label: "Tags" - name: "tags" - widget: "list" - required: false - fields: - - label: "Tag" - name: "tag" - widget: "string" - - {label: "Type", name: "type", widget: "hidden", default: "post"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "forms" - icon: "document" - label: "Dokumente" - label_singular: "Dokument" - description: "Hier sind Formulare, Vorlagen und andere Dokumente zu hinterlegen." - folder: "content/german/forms" - filter: {field: "type", value: "forms"} - create: true - slug: "{{slug}}" - editor: - preview: false - media_folder: '/static/media/forms' - public_folder: '/media/forms' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - label: "Dateien" - name: "files" - widget: "list" - required: false - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Datei", name: "link", widget: "file"} - - {label: "Type", name: "type", widget: "hidden", default: "forms"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "cantorpreis" - icon: "award" - label: "Cantor-Preisträger" - label_singular: "Cantor-Preisträger" - folder: "content/german/cantorpreis" - filter: {field: "type", value: "cantorpreis"} - create: true - editor: - preview: false - media_folder: '/static/media/cantorpreis' - public_folder: '/media/cantorpreis' - fields: - - {label: "Jahr", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Beschreibung", name: "description", widget: "text", required: false} - - {label: "Bild", name: "image", widget: "image", default: "/media/cantorpreis/image.webp", required: false} - - {label: "Name", name: "name", widget: "string"} - - label: "Kontaktdaten/Soz. Netzwerke" - name: "contact" - widget: "list" - fields: - - {label: "Bezeichnung", name: "name", widget: "string"} - - {label: "Symbol", name: "icon", widget: "string", hint: "Liste unter https://fontawesome.com/search"} - - {label: "Link", name: "link", widget: "string"} - - {label: "Type", name: "type", widget: "hidden", default: "cantorpreis"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "ganztagsangebote" - icon: "group" - label: "Ganztagsangebote" - label_singular: "Ganztagsangebot" - folder: "content/german/ganztagsangebote" - filter: {field: "type", value: "ganztagsangebote"} - create: true - editor: - preview: false - media_folder: '/static/media/ganztagsangebote' - public_folder: '/media/ganztagsangebote' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Bild", name: "image", widget: "image", default: "/media/ganztagsangebote/image.webp", required: false} - - {label: "Themenbereich", name: "category", widget: "string", required: true} - - {label: "Dauer", name: "duration", widget: "string"} - - {label: "Tag/Stunden", name: "weekly", widget: "string"} - - {label: "Klassenstufen", name: "class", widget: "string"} - - {label: "Raum", name: "room", widget: "string"} - - {label: "Anmeldelink", name: "apply_url", widget: "hidden", default: "https://moodle.bildung-lsa.de/gcg/mod/choice/view.php?id=828"} - - {label: "Type", name: "type", widget: "hidden", default: "ganztagsangebote"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "wettbewerbe" - icon: "trophy" - label: "Wettbewerbe" - label_singular: "Wettbewerb" - folder: "content/german/wettbewerbe" - filter: {field: "type", value: "wettbewerbe"} - create: true - editor: - preview: false - media_folder: '/static/media/contests' - public_folder: '/media/contests' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Bild", name: "image", widget: "image", default: "/media/contests/image.webp", required: false} - - {label: "Fach", name: "category", widget: "string"} - - {label: "Klassenstufen", name: "class", widget: "string"} - - {label: "Website", name: "web_url", widget: "string", required: false} - - {label: "Type", name: "type", widget: "hidden", default: "wettbewerbe"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "begabtenfoerderung" - icon: "book" - label: "Begabtenförderung" - label_singular: "Begabtenförderung" - folder: "content/german/begabtenfoerderung" - filter: {field: "type", value: "begabtenfoerderung"} - create: true - editor: - preview: false - media_folder: '/static/media/begabtenfoerderung' - public_folder: '/media/begabtenfoerderung' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Bild", name: "image", widget: "image", default: "/media/begabtenfoerderung/image.webp", required: false} - - {label: "Fach", name: "category", widget: "string"} - - {label: "Klassenstufen", name: "class", widget: "string"} - - {label: "Website", name: "web_url", widget: "string", required: false} - - {label: "Type", name: "type", widget: "hidden", default: "begabtenfoerderung"} - - {label: "Text", name: "body", widget: "markdown"} - - name: "schulchronik" - icon: "timeline" - label: "Schulchronik" - label_singular: "Chronikjahr" - folder: "content/german/schulchronik" - filter: {field: "type", value: "schulchronik"} - create: true - media_folder: '/static/media/schulchronik' - public_folder: '/media/schulchronik' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Type", name: "type", widget: "hidden", default: "schulchronik"} - - {label: "Einleitung", name: "pretext", hint: "Jahreszahltext", widget: "markdown", required: false} - - label: "Kreative Haufen" - name: "topics" - widget: "list" - fields: - - {label: "Titel", name: "title", widget: "string", required: true} - - {label: "Element-ID", hint: "Kleingeschriebene Bezeichnung ohne Leer- und Sonderzeichen, darf sich nicht innerhalb einer Seite doppeln", name: "id", widget: "string", required: true} - - {label: "Inhalt", name: "content", widget: "markdown", required: true} - required: false - - {label: "Text", name: "body", widget: "markdown", required: false, default: "{{< load-photoswipe >}}"} - - name: "abiturienten" - icon: "graduation-cap" - label: "Abiturienten" - label_singular: "Abiturjahrgang" - folder: "content/german/abiturienten" - filter: {field: "type", value: "abiturienten"} - create: true - editor: - preview: false - media_folder: '/static/media/abiturienten' - public_folder: '/media/abiturienten' - fields: - - {label: "Titel", name: "title", widget: "string"} - - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - - {label: "Bild", name: "image", widget: "image", default: "/media/abiturienten/image.webp", required: false} - - {label: "Mehrere Bilder", name: "multiple", widget: "boolean", default: false, required: false} - - {label: "Type", name: "type", widget: "hidden", default: "abiturienten"} - - {label: "Text", name: "body", widget: "markdown"} diff --git a/static/admin-gitea/index.html b/static/admin-gitea/index.html deleted file mode 100644 index a4ba13fd..00000000 --- a/static/admin-gitea/index.html +++ /dev/null @@ -1,800 +0,0 @@ - - - - - - - Static CMS - - - - - - - - - - - - - - - - - diff --git a/static/admin/config.yml b/static/admin/config.yml index 2cc5c695..0e490358 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -1,12 +1,9 @@ backend: - name: gitlab - repo: gcg/gcg.pages.cantorgymnasium.de + name: gitea + repo: gcg/gcg-website branch: master - auth_type: pkce - app_id: 469e4923e9b0a2d128604dfdf8e5c413665d65f730e4f563541e237210d29992 - api_root: https://gitlab.cantorgymnasium.de/api/v4 - base_url: https://gitlab.cantorgymnasium.de - auth_endpoint: oauth/authorize + api_root: https://git.cantorgymnasium.de/api/v1 + base_url: https://oauth.cantorgymnasium.de commit_messages: create: "{{slug}} in {{collection}} erstellt" update: "{{slug}} in {{collection}} aktualisiert" @@ -444,9 +441,9 @@ collections: - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - name: "begabtenfoerderung-index" + - name: "begabte-index" label: "Begabtenförderung" - file: "content/german/begabtenfoerderung/_index.md" + file: "content/german/begabte/_index.md" fields: - {label: "Titel", name: "title", widget: "string"} - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} @@ -689,27 +686,27 @@ collections: - {label: "Website", name: "web_url", widget: "string", required: false} - {label: "Type", name: "type", widget: "hidden", default: "wettbewerbe"} - {label: "Text", name: "body", widget: "markdown"} - - name: "begabtenfoerderung" + - name: "begabte" icon: "book" label: "Begabtenförderung" label_singular: "Begabtenförderung" - folder: "content/german/begabtenfoerderung" - filter: {field: "type", value: "begabtenfoerderung"} + folder: "content/german/begabte" + filter: {field: "type", value: "begabte"} create: true editor: preview: false - media_folder: '/static/media/begabtenfoerderung' - public_folder: '/media/begabtenfoerderung' + media_folder: '/static/media/begabte' + public_folder: '/media/begabte' fields: - {label: "Titel", name: "title", widget: "string"} - {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false} - {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"} - {label: "Metabeschreibung", name: "description", widget: "text", required: false} - - {label: "Bild", name: "image", widget: "image", default: "/media/begabtenfoerderung/image.webp", required: false} + - {label: "Bild", name: "image", widget: "image", default: "/media/begabte/image.webp", required: false} - {label: "Fach", name: "category", widget: "string"} - {label: "Klassenstufen", name: "class", widget: "string"} - {label: "Website", name: "web_url", widget: "string", required: false} - - {label: "Type", name: "type", widget: "hidden", default: "begabtenfoerderung"} + - {label: "Type", name: "type", widget: "hidden", default: "begabte"} - {label: "Text", name: "body", widget: "markdown"} - name: "schulchronik" icon: "timeline" diff --git a/static/admin/index.html b/static/admin/index.html index 38030e36..c9a7d47e 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -13,25 +13,32 @@ } - +