diff --git a/assets/scss/_common.scss b/assets/scss/_common.scss index 80f005f0..d3148dcd 100644 --- a/assets/scss/_common.scss +++ b/assets/scss/_common.scss @@ -432,7 +432,7 @@ details[open] summary { #wc-canvas { width: 100%; - height: 600px; + height: 400px; } .top-banner { @@ -445,4 +445,15 @@ details[open] summary { .content-justify { text-align: justify; +} + +.fb-tile-color { + display: flex; + justify-content: center; + align-items: center; + height: 195px; +} + +.fb-tile-icon { + font-size: 96px; } \ No newline at end of file diff --git a/config.yml b/config.yml index 2e232114..1f0731b9 100644 --- a/config.yml +++ b/config.yml @@ -7,6 +7,7 @@ defaultContentLanguage: de enableEmoji: true enableRobotsTxt: true timeZone: Europe/Berlin +removePathAccents: true markup: defaultMarkdownHandler: goldmark goldmark: diff --git a/content/german/schulchronik/2018.md b/content/german/schulchronik/2018.md index d6849a72..9a7d4073 100644 --- a/content/german/schulchronik/2018.md +++ b/content/german/schulchronik/2018.md @@ -23,10 +23,6 @@ topics: Inhalt - - {{< card >}} - - - title: Schulfest "Make Cantor great again" content: | Inhalt diff --git a/content/german/superhaufen/_index.md b/content/german/superhaufen/_index.md new file mode 100644 index 00000000..b7e34f87 --- /dev/null +++ b/content/german/superhaufen/_index.md @@ -0,0 +1,6 @@ +--- +title: Superhaufen +draft: false +bg_image: media/backgrounds/page-title.webp +description: null +--- \ No newline at end of file diff --git a/layouts/_default/superhaufen.html b/layouts/_default/superhaufen.html new file mode 100644 index 00000000..0ec4ac12 --- /dev/null +++ b/layouts/_default/superhaufen.html @@ -0,0 +1,7 @@ +
+ \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index af6ba4a8..32221bec 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,6 +16,8 @@ + + diff --git a/layouts/schulchronik/single.html b/layouts/schulchronik/single.html index 84dcba57..575caff1 100644 --- a/layouts/schulchronik/single.html +++ b/layouts/schulchronik/single.html @@ -28,9 +28,18 @@ {{ partial "chronik-modal" (dict "id" "pretext" "title" .Title "content" .Params.pretext) }} {{ end }} - {{ $topics := slice (slice .Params.Title 100 "pretext") }} + {{ $topics := slice }} + {{ if .Params.pretext }} + {{ $topics = $topics | append (slice (slice .Params.Title 200 "pretext")) }} + {{ else }} + {{ $topics = $topics | append (slice (slice .Params.Title 200)) }} + {{ end }} {{ range .Params.topics }} - {{ $topics = $topics | append (slice (slice .title 40 (md5 .title) )) }} + {{ if .superhaufen.enable }} + {{ $topics = $topics | append (slice (slice .title 30 (.superhaufen.link | urlize) "superhaufen" )) }} + {{ else }} + {{ $topics = $topics | append (slice (slice .title 30 (md5 .title) )) }} + {{ end }} {{ end }} {{ $topics = $topics | jsonify }} diff --git a/layouts/superhaufen/list.html b/layouts/superhaufen/list.html new file mode 100644 index 00000000..503437d5 --- /dev/null +++ b/layouts/superhaufen/list.html @@ -0,0 +1,15 @@ +{{ define "main" }} + +