From 053bf5b0a0e27c63c977cb5c42ae73454ebf04c4 Mon Sep 17 00:00:00 2001 From: Ral Date: Tue, 30 Apr 2024 21:42:33 +0200 Subject: [PATCH] Configure CfP via shortcodes and partials --- content/cfp.de.md | 4 +++- content/cfp.en.md | 5 +++-- content/cfp.fr.md | 4 +++- content/cfp.it.md | 4 +++- layouts/partials/cfp.de.html | 15 +++++++++++++++ layouts/partials/cfp.en.html | 15 +++++++++++++++ layouts/partials/cfp.fr.html | 15 +++++++++++++++ layouts/partials/cfp.it.html | 15 +++++++++++++++ layouts/shortcodes/cfp.html | 9 +++++++++ 9 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/cfp.de.html create mode 100644 layouts/partials/cfp.en.html create mode 100644 layouts/partials/cfp.fr.html create mode 100644 layouts/partials/cfp.it.html create mode 100644 layouts/shortcodes/cfp.html diff --git a/content/cfp.de.md b/content/cfp.de.md index cbcba79..5436418 100644 --- a/content/cfp.de.md +++ b/content/cfp.de.md @@ -30,7 +30,9 @@ Oder komm einfach nur als Besucher und schau, was die anderen so machen, diskuti ## Wo konkret kann ich meinen Beitrag einreichen? -Zur Organisation von Beiträgen verwenden wir das Pretalx. Deinen Beitrag kannst Du über unser Pretalx einreichen. Weitere Details erscheinen links in der Sidebar sobald das CfP offen ist. +Zur Organisation von Beiträgen verwenden wir das Pretalx. + +{{< cfp >}} ## Wuah: Ich habe noch Fragen! diff --git a/content/cfp.en.md b/content/cfp.en.md index 26e4184..bca72c2 100644 --- a/content/cfp.en.md +++ b/content/cfp.en.md @@ -28,8 +28,9 @@ Or just attend as a visitor, look around what others do, get involved in discuss ## Where exactly can I submit my contribution? -For organizing contributions we use Pretalx. You can submit your entry at our Pretalx -Further details can be found in the sidebar on the left as soon as the CfP is running. +For organizing contributions we use Pretalx. You can submit your entry at our Pretalx. + +{{< cfp >}} ## Whoa! I still have questions! diff --git a/content/cfp.fr.md b/content/cfp.fr.md index 1cb1988..166cff9 100644 --- a/content/cfp.fr.md +++ b/content/cfp.fr.md @@ -28,7 +28,9 @@ Bien évidemment, tu es aussi le bienvenue en tant que simple visiteur pour obse ## Où puis-je concrètement soumettre ma contribution? -Pour l’organisation du congrès, nous employons le Pretalx. Deinen Beitrag kannst Du über unser Pretalx einreichen. Weitere Details erscheinen links in der Sidebar sobald das CfP offen ist. +Pour l’organisation du congrès, nous employons le Pretalx. + +{{< cfp >}} ## Wouah: J’ai encore des questions! diff --git a/content/cfp.it.md b/content/cfp.it.md index 176ad79..3c138ca 100644 --- a/content/cfp.it.md +++ b/content/cfp.it.md @@ -28,7 +28,9 @@ O raggiungici semplicemente come visitatore e guarda, cosa fanno gli altri, parl ## Dove esattamente posso registrare il mio contributo? -Per l'organizzazione usiamo Pretalx. Deinen Beitrag kannst Du über unser Pretalx einreichen. Weitere Details erscheinen links in der Sidebar sobald das CfP offen ist. +Per l'organizzazione usiamo Pretalx. + +{{< cfp >}} ## Eh ma... non avete risposto alla mia domanda! diff --git a/layouts/partials/cfp.de.html b/layouts/partials/cfp.de.html new file mode 100644 index 0000000..920afa3 --- /dev/null +++ b/layouts/partials/cfp.de.html @@ -0,0 +1,15 @@ +{{ if .Site.Data.cosin.cfp_running }} +

+ Das CfP für die diesjährige CoSin ist offen: +

+ +

+ Einreicheschluss ist am {{ i18n .Site.Data.cosin.cfp_end_date_weekday }}, {{ .Site.Data.cosin.cfp_end_date_day }}. {{ i18n .Site.Data.cosin.cfp_end_date_month }} {{ .Site.Data.cosin.date_year }}. +

+{{ else }} +

+ Das CfP ist aktuell geschlossen. +

+{{ end }} diff --git a/layouts/partials/cfp.en.html b/layouts/partials/cfp.en.html new file mode 100644 index 0000000..656ecd8 --- /dev/null +++ b/layouts/partials/cfp.en.html @@ -0,0 +1,15 @@ +{{ if .Site.Data.cosin.cfp_running }} +

+ The CfP for this year's CoSin is open: +

+ +

+ The deadline is {{ i18n .Site.Data.cosin.cfp_end_date_weekday }}, {{ humanize .Site.Data.cosin.cfp_end_date_day }} {{ i18n .Site.Data.cosin.cfp_end_date_month }} {{ .Site.Data.cosin.date_year }}. +

+{{ else }} +

+ The CfP is currently closed. +

+{{ end }} diff --git a/layouts/partials/cfp.fr.html b/layouts/partials/cfp.fr.html new file mode 100644 index 0000000..920afa3 --- /dev/null +++ b/layouts/partials/cfp.fr.html @@ -0,0 +1,15 @@ +{{ if .Site.Data.cosin.cfp_running }} +

+ Das CfP für die diesjährige CoSin ist offen: +

+ +

+ Einreicheschluss ist am {{ i18n .Site.Data.cosin.cfp_end_date_weekday }}, {{ .Site.Data.cosin.cfp_end_date_day }}. {{ i18n .Site.Data.cosin.cfp_end_date_month }} {{ .Site.Data.cosin.date_year }}. +

+{{ else }} +

+ Das CfP ist aktuell geschlossen. +

+{{ end }} diff --git a/layouts/partials/cfp.it.html b/layouts/partials/cfp.it.html new file mode 100644 index 0000000..920afa3 --- /dev/null +++ b/layouts/partials/cfp.it.html @@ -0,0 +1,15 @@ +{{ if .Site.Data.cosin.cfp_running }} +

+ Das CfP für die diesjährige CoSin ist offen: +

+ +

+ Einreicheschluss ist am {{ i18n .Site.Data.cosin.cfp_end_date_weekday }}, {{ .Site.Data.cosin.cfp_end_date_day }}. {{ i18n .Site.Data.cosin.cfp_end_date_month }} {{ .Site.Data.cosin.date_year }}. +

+{{ else }} +

+ Das CfP ist aktuell geschlossen. +

+{{ end }} diff --git a/layouts/shortcodes/cfp.html b/layouts/shortcodes/cfp.html new file mode 100644 index 0000000..1910ce6 --- /dev/null +++ b/layouts/shortcodes/cfp.html @@ -0,0 +1,9 @@ +{{ if eq .Site.Language.Lang "de" }} + {{ partial "cfp.de.html" . }} +{{ else if eq .Site.Language.Lang "fr" }} + {{ partial "cfp.fr.html" . }} +{{ else if eq .Site.Language.Lang "it" }} + {{ partial "cfp.it.html" . }} +{{ else if eq .Site.Language.Lang "en" }} + {{ partial "cfp.en.html" . }} +{{ end }}