Compare commits
No commits in common. "c6ac705b7da1e41458bfbcff472d95c828fc98b2" and "992c9687af4c6506bb2df7a28f7928332584b579" have entirely different histories.
c6ac705b7d
...
992c9687af
@ -3,7 +3,7 @@ title: Frühstudium
|
||||
draft: false
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
description: ""
|
||||
image: /media/begabte/image.webp
|
||||
image: ""
|
||||
category: Naturwissenschaften
|
||||
class: 10 - 12 Klasse
|
||||
web_url: null
|
||||
|
@ -3,7 +3,7 @@ title: Begabtenförderungskonzept
|
||||
draft: false
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
description: ""
|
||||
image: /media/begabte/image.webp
|
||||
image: ""
|
||||
category: fächerübergreifend
|
||||
class: 5 - 12 Klasse
|
||||
web_url: null
|
||||
|
@ -7,7 +7,7 @@ description: ""
|
||||
image: /media/image.webp
|
||||
author: Schulleitung
|
||||
categories:
|
||||
- Veranstaltungen
|
||||
- Ereignisse
|
||||
tags:
|
||||
- cantorluftschnuppern
|
||||
- cantorentdecken
|
||||
|
@ -8,7 +8,7 @@ image: /media/blog//gy-pt-2023.png
|
||||
author: Denys Konovalov
|
||||
categories:
|
||||
- Wettbewerbe
|
||||
- Naturwissenschaften
|
||||
- Physik
|
||||
tags:
|
||||
- physik
|
||||
- gypt
|
||||
|
@ -7,8 +7,7 @@ description: ""
|
||||
image: /media/image.webp
|
||||
author: Frau Schapitz
|
||||
categories:
|
||||
- Sonstiges
|
||||
- Informatik/Technik
|
||||
- Website
|
||||
tags:
|
||||
- renewGCG
|
||||
type: post
|
||||
|
@ -7,7 +7,7 @@ description: ""
|
||||
image: /media/image.webp
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Veranstaltungen
|
||||
- Ereignisse
|
||||
tags:
|
||||
- tdot
|
||||
- cantorluftschnuppern
|
||||
|
@ -8,7 +8,6 @@ image: /media/blog/biber_300dpi.png
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Wettbewerbe
|
||||
- Informatik/Technik
|
||||
tags:
|
||||
- "2022"
|
||||
- Infobiber
|
||||
|
@ -9,7 +9,6 @@ image: /media/blog/mia2.webp
|
||||
author: Denys Konovalov
|
||||
categories:
|
||||
- Wettbewerbe
|
||||
- Mathematik
|
||||
tags:
|
||||
- Mathematik
|
||||
- Weihnachten
|
||||
|
@ -7,9 +7,6 @@ description: ""
|
||||
image: /media/image.webp
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Musik
|
||||
- Deutsch
|
||||
- Traditionen
|
||||
- Veranstaltungen
|
||||
tags:
|
||||
- Muli
|
||||
|
@ -8,7 +8,6 @@ image: /media/image.webp
|
||||
author: Frau Krug
|
||||
categories:
|
||||
- Musik
|
||||
- Traditionen
|
||||
tags:
|
||||
- Musikfahrt
|
||||
- Weihnachtskonzert
|
||||
|
@ -7,9 +7,9 @@ description: ""
|
||||
image: /media/blog/SL-2023//sl-1.jpg
|
||||
author: Franziska Berner
|
||||
categories:
|
||||
- Traditionen
|
||||
- Wettbewerbe
|
||||
- Mathematik
|
||||
- Traditionen
|
||||
tags:
|
||||
- spezilager
|
||||
- matheolympiade
|
||||
|
@ -4,11 +4,10 @@ date: 2023-01-24T15:13:45+01:00
|
||||
draft: false
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
description: ""
|
||||
image: /media/blog/image.webp
|
||||
image: /media/image.webp
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Wettbewerbe
|
||||
- Fremdsprachen
|
||||
tags:
|
||||
- TOEFL
|
||||
- Englisch
|
||||
|
@ -8,7 +8,6 @@ image: /media/blog/vlw_logo_blau_rgb.webp
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Wettbewerbe
|
||||
- Deutsch
|
||||
tags:
|
||||
- Vorlesewettbewerb 6
|
||||
- Schulrunde
|
||||
|
@ -7,9 +7,8 @@ description: ""
|
||||
image: /media/blog/gcgweihnachten.webp
|
||||
author: Herr Berger
|
||||
categories:
|
||||
- Weihnachten
|
||||
- Traditionen
|
||||
- Schülerrat
|
||||
- Musik
|
||||
tags:
|
||||
- Weihnachtskonzert
|
||||
- Weihnachtssingen
|
||||
|
@ -3,7 +3,7 @@ title: Chemie - die stimmt!
|
||||
draft: "false"
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
image: /media/contests/chds.webp
|
||||
category: Chemie
|
||||
category: "Chemie "
|
||||
class: 8. - 10. Klasse
|
||||
web_url: https://www.chemie-die-stimmt.de/
|
||||
type: wettbewerbe
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Chemkids
|
||||
title: "Chemkids "
|
||||
draft: "false"
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
image: /media/contests/chemkids.webp
|
||||
|
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Internationale Chemieolympiade (IChO)
|
||||
title: "Internationale Chemieolympiade (IChO) "
|
||||
draft: "false"
|
||||
bg_image: /media/backgrounds/page-title.webp
|
||||
image: /media/contests/icho.webp
|
||||
category: Chemie
|
||||
category: "Chemie "
|
||||
class: 9. - 12. Klasse
|
||||
web_url: https://www.scienceolympiaden.de/icho
|
||||
type: wettbewerbe
|
||||
@ -11,9 +11,12 @@ gallery: false
|
||||
---
|
||||
- Internationale Wissenschaftsolympiade
|
||||
- findet jährlich für Schülerinnen und Schüler ab Klassenstufe 9 statt
|
||||
- Ziel: die bundesweit besten vier Schüler zu finden, die als Mannschaft am internationalen Wettbewerb teilnehmen
|
||||
- Ziel: die bundesweit besten vier Schüler zu finden, die als Mannschaft am
|
||||
internationalen Wettbewerb teilnehmen
|
||||
- Vier Runden:
|
||||
- Runde 1: (Hausaufgabenrunde): theoretische Aufgaben
|
||||
- Runde 2: vierstündige Klausur
|
||||
- Runde 3: die 60 besten Teilnehmer → achttägiges Auswahlseminar mit Vorträgen und Übungen zu Fachthemen, Laborarbeit und einem tollen Rahmenprogramm.
|
||||
- Runde 4: Die 15 Besten der dritten Runde bewerben sich in der Auswahlrunde in Kiel um einen Platz in der deutschen Mannschaft für den internationalen Wettstreit
|
||||
Runde 1: (Hausaufgabenrunde): theoretische Aufgaben
|
||||
Runde 2: vierstündige Klausur
|
||||
Runde 3: die 60 besten Teilnehmer → achttägiges Auswahlseminar mit Vorträgen und
|
||||
Übungen zu Fachthemen, Laborarbeit und einem tollen Rahmenprogramm.
|
||||
Runde 4: Die 15 Besten der dritten Runde bewerben sich in der Auswahlrunde in Kiel um
|
||||
einen Platz in der deutschen Mannschaft für den internationalen Wettstreit
|
||||
|
@ -1,35 +0,0 @@
|
||||
blog:
|
||||
- Wettbewerbe
|
||||
- Veranstaltungen
|
||||
- Traditionen
|
||||
- Mathematik
|
||||
- Naturwissenschaften
|
||||
- Informatik/Technik
|
||||
- Deutsch
|
||||
- Fremdsprachen
|
||||
- Sport
|
||||
- Gesellschaftswissenschaften
|
||||
- Kunst
|
||||
- Musik
|
||||
- Schülerrat
|
||||
- Sonstiges
|
||||
ganztag:
|
||||
- Sport
|
||||
- Musik
|
||||
- Naturwissenschaften
|
||||
- Gesellschaft
|
||||
- Technik
|
||||
- Kunst
|
||||
- Mathematik
|
||||
contests:
|
||||
- Informatik
|
||||
- Fremdsprachen
|
||||
- Mathematik
|
||||
- Chemie
|
||||
- Geographie
|
||||
- MINT
|
||||
- Physik
|
||||
begabte:
|
||||
- fächerübergreifend
|
||||
- Naturwissenschaften
|
||||
- Mathematik
|
@ -5,7 +5,7 @@
|
||||
{{- if not (eq (len .Site.Taxonomies.categories) 0) }}
|
||||
<ul class="list-unstyled">
|
||||
{{- range $name, $items := .Site.Taxonomies.categories }}
|
||||
<li class="border-bottom"><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}" class="d-block pb-3 mt-3">{{ $name | humanize | title }}</a></li>
|
||||
<li class="border-bottom"><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}" class="d-block pb-3 mt-3">{{ $name | title | humanize }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<ul class="list-inline custom-breadcrumb">
|
||||
<li class="list-inline-item h2"><a class="text-primary font-secondary" href="{{ if .Parent.Page }}{{ .Parent.Page.Permalink }}{{ else }}{{ .Site.BaseURL | absLangURL }}{{end}}">{{ with .Parent.Params.title }}{{.}}{{ else }}{{ .Site.Params.home }}{{end}}</a></li>
|
||||
<li class="list-inline-item h2"><a class="text-primary font-secondary" href="{{ .Site.BaseURL | absLangURL }}">{{ .Site.Params.home }}</a></li>
|
||||
<li class="list-inline-item h2"><i class="fa-solid fa-angle-right text-white"></i></li>
|
||||
<li class="list-inline-item text-white h2 font-secondary">{{ .Title }}</li>
|
||||
</ul>
|
||||
|
@ -333,39 +333,6 @@ collections:
|
||||
name: "vimeo"
|
||||
widget: "object"
|
||||
fields: [{label: "Tracking deaktivieren", name: "enableDNT", widget: "boolean", required: false}]
|
||||
- name: "categories-config"
|
||||
label: "Kategorien"
|
||||
file: "data/de/categories.yml"
|
||||
format: yml
|
||||
fields:
|
||||
- label: "Aktuelles"
|
||||
label_singular: "Kategorie"
|
||||
name: "blog"
|
||||
widget: "list"
|
||||
required: true
|
||||
fields:
|
||||
- {label: "Kategorie", name: "category", widget: "string", required: true}
|
||||
- label: "Ganztagsbereich"
|
||||
label_singular: "Kategorie"
|
||||
name: "ganztag"
|
||||
widget: "list"
|
||||
required: true
|
||||
fields:
|
||||
- {label: "Kategorie", name: "category", widget: "string", required: true}
|
||||
- label: "Wettbewerbe"
|
||||
label_singular: "Kategorie"
|
||||
name: "contests"
|
||||
widget: "list"
|
||||
required: true
|
||||
fields:
|
||||
- {label: "Kategorie", name: "category", widget: "string", required: true}
|
||||
- label: "Begabtenförderung"
|
||||
label_singular: "Kategorie"
|
||||
name: "begabte"
|
||||
widget: "list"
|
||||
required: true
|
||||
fields:
|
||||
- {label: "Kategorie", name: "category", widget: "string", required: true}
|
||||
- name: "index-pages"
|
||||
icon: "page"
|
||||
label: "Hauptseiten"
|
||||
@ -576,7 +543,6 @@ collections:
|
||||
- name: "blog"
|
||||
icon: "news"
|
||||
label: "Aktuelles"
|
||||
description: Diese Artikel werden im Bereich "Aktuelles" auf der Schulhomepage angezeigt.
|
||||
label_singular: "Blogbeitrag"
|
||||
folder: "content/german/blog"
|
||||
filter: {field: "type", value: "post"}
|
||||
@ -588,10 +554,8 @@ collections:
|
||||
media_folder: '/static/media/blog'
|
||||
public_folder: '/media/blog'
|
||||
view_groups:
|
||||
- label: Entwurf
|
||||
- label: Drafts
|
||||
field: draft
|
||||
- label: Kategorie
|
||||
field: categories
|
||||
sortable_fields:
|
||||
fields: ['date', 'title']
|
||||
default:
|
||||
@ -603,7 +567,7 @@ 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", default: "", required: false}
|
||||
- {label: "Beitragsbild", name: "image", widget: "image", default: "/media/blog/image.webp"}
|
||||
- {label: "Beitragsbild", name: "image", widget: "image", default: "/media/image.webp"}
|
||||
- label: "Beitragsautor"
|
||||
name: "author"
|
||||
widget: "relation"
|
||||
@ -612,15 +576,12 @@ collections:
|
||||
value_field: "title"
|
||||
- label: "Kategorien"
|
||||
name: "categories"
|
||||
widget: "relation"
|
||||
required: true
|
||||
collection: "config"
|
||||
file: "categories-config"
|
||||
value_field: "blog.*"
|
||||
search_fields: ["blog.*"]
|
||||
display_fields: ["blog.*"]
|
||||
multiple: true
|
||||
options_length: 50
|
||||
widget: "list"
|
||||
required: false
|
||||
fields:
|
||||
- label: "Kategorie"
|
||||
name: "category"
|
||||
widget: "string"
|
||||
- label: "Tags"
|
||||
name: "tags"
|
||||
widget: "list"
|
||||
@ -666,12 +627,6 @@ collections:
|
||||
label_singular: "Cantor-Preisträger"
|
||||
folder: "content/german/cantorpreis"
|
||||
filter: {field: "type", value: "cantorpreis"}
|
||||
sortable_fields:
|
||||
fields: ['title', 'name']
|
||||
default:
|
||||
field: title
|
||||
direction: Descending
|
||||
summary: "{{title}} - {{name}}"
|
||||
create: true
|
||||
editor:
|
||||
preview: false
|
||||
@ -727,16 +682,7 @@ collections:
|
||||
- {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: "relation"
|
||||
required: true
|
||||
collection: "config"
|
||||
file: "categories-config"
|
||||
value_field: "ganztag.*"
|
||||
search_fields: ["ganztag.*"]
|
||||
display_fields: ["ganztag.*"]
|
||||
options_length: 50
|
||||
- {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"}
|
||||
@ -762,16 +708,7 @@ collections:
|
||||
- {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: "relation"
|
||||
required: true
|
||||
collection: "config"
|
||||
file: "categories-config"
|
||||
value_field: "contests.*"
|
||||
search_fields: ["contests.*"]
|
||||
display_fields: ["contests.*"]
|
||||
options_length: 50
|
||||
- {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"}
|
||||
@ -794,16 +731,7 @@ collections:
|
||||
- {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/begabte/image.webp", required: false}
|
||||
- label: "Fach"
|
||||
name: "category"
|
||||
widget: "relation"
|
||||
required: true
|
||||
collection: "config"
|
||||
file: "categories-config"
|
||||
value_field: "begabte.*"
|
||||
search_fields: ["begabte.*"]
|
||||
display_fields: ["begabte.*"]
|
||||
options_length: 50
|
||||
- {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: "begabte"}
|
||||
|
@ -725,316 +725,5 @@
|
||||
};
|
||||
CMS.registerPreviewTemplate("about-index", AboutPreview);
|
||||
</script>
|
||||
<script>
|
||||
const PostPreviewCard = ({ entry, widgetFor, viewStyle }) => {
|
||||
return h(
|
||||
'div',
|
||||
{ style: { width: '100%', height: '100%' } },
|
||||
viewStyle === 'grid' ? widgetFor('image') : null,
|
||||
viewStyle === 'grid' ?
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', paddingBottom: '8px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
),
|
||||
h('span', { style: { fontSize: '16px' } }, new Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'numeric', year: 'numeric'}).format(new Date(entry.data.date)))
|
||||
),
|
||||
) : null,
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', paddingTop: '8px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexDirection: viewStyle === 'grid' ? 'column' : 'row',
|
||||
alignItems: 'baseline',
|
||||
gap: '8px',
|
||||
},
|
||||
},
|
||||
h('strong', { style: { fontSize: '20px' } }, entry.data.title),
|
||||
),
|
||||
),
|
||||
),
|
||||
viewStyle != 'grid' ?
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', paddingBottom: '8px', paddingTop: '0px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
),
|
||||
h('span', { style: { fontSize: '16px' } }, new Intl.DateTimeFormat('de-De', { day: 'numeric', month: 'numeric', year: 'numeric'}).format(new Date(entry.data.date)))
|
||||
),
|
||||
) : null,
|
||||
);
|
||||
};
|
||||
const GenericCard = ({ entry, widgetFor, viewStyle }) => {
|
||||
return h(
|
||||
'div',
|
||||
{ style: { width: '100%', height: '100%' } },
|
||||
viewStyle === 'grid' ? widgetFor('image') : null,
|
||||
viewStyle === 'grid' ?
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', paddingBottom: '8px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
),
|
||||
h('span', { style: { fontSize: '16px' } }, entry.data.category)
|
||||
),
|
||||
) : null,
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', paddingTop: viewStyle === 'grid' ? '8px' : '16px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexDirection: viewStyle === 'grid' ? 'column' : 'row',
|
||||
alignItems: 'baseline',
|
||||
gap: '8px',
|
||||
},
|
||||
},
|
||||
h('strong', { style: { fontSize: '20px' } }, entry.data.title),
|
||||
),
|
||||
viewStyle != 'grid' ? h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
) : null,
|
||||
),
|
||||
),
|
||||
);
|
||||
};
|
||||
const NoCatCard = ({ entry, widgetFor, viewStyle }) => {
|
||||
return h(
|
||||
'div',
|
||||
{ style: { width: '100%', height: '100%' } },
|
||||
viewStyle === 'grid' ? widgetFor('image') : null,
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexDirection: viewStyle === 'grid' ? 'column' : 'row',
|
||||
alignItems: 'baseline',
|
||||
gap: '8px',
|
||||
},
|
||||
},
|
||||
h('strong', { style: { fontSize: '20px' } }, entry.data.title),
|
||||
),
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
};
|
||||
const SmallCard = ({ entry, widgetFor, viewStyle }) => {
|
||||
return h(
|
||||
'div',
|
||||
{ style: { width: '100%', height: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{ style: { padding: '16px', width: '100%' } },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'start',
|
||||
},
|
||||
},
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexDirection: viewStyle === 'grid' ? 'column' : 'row',
|
||||
alignItems: 'baseline',
|
||||
gap: '8px',
|
||||
},
|
||||
},
|
||||
h('strong', { style: { fontSize: '20px' } }, entry.data.title),
|
||||
),
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
style: {
|
||||
backgroundColor: entry.data.draft === true ? 'RoyalBlue' : 'green',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
padding: '4px 8px',
|
||||
textAlign: 'center',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
cursor: 'pointer',
|
||||
borderRadius: '4px',
|
||||
},
|
||||
},
|
||||
entry.data.draft === true ? 'Entwurf' : 'Öffentlich',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
CMS.registerPreviewCard('blog', PostPreviewCard);
|
||||
CMS.registerPreviewCard('ganztagsangebote', GenericCard);
|
||||
CMS.registerPreviewCard('wettbewerbe', GenericCard);
|
||||
CMS.registerPreviewCard('begabte', GenericCard);
|
||||
CMS.registerPreviewCard('abiturienten', NoCatCard);
|
||||
CMS.registerPreviewCard('cantorfora', NoCatCard);
|
||||
CMS.registerPreviewCard('blog-index', SmallCard);
|
||||
CMS.registerPreviewCard('about-index', SmallCard);
|
||||
CMS.registerPreviewCard('anmeldung-index', SmallCard);
|
||||
CMS.registerPreviewCard('cantorpreis-index', SmallCard);
|
||||
CMS.registerPreviewCard('contact-index', SmallCard);
|
||||
CMS.registerPreviewCard('event-index', SmallCard);
|
||||
CMS.registerPreviewCard('forms-index', SmallCard);
|
||||
CMS.registerPreviewCard('ganztagsangebote-index', SmallCard);
|
||||
CMS.registerPreviewCard('wettbewerbe-index', SmallCard);
|
||||
CMS.registerPreviewCard('begabte-index', SmallCard);
|
||||
CMS.registerPreviewCard('pages', SmallCard);
|
||||
CMS.registerPreviewCard('forms', SmallCard);
|
||||
CMS.registerPreviewCard('schulchronik', SmallCard);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 37 KiB |