-
+
- {{ if and (ne .Params.when "") (ne .Params.when nil) }}
-
- {{ .Params.when }}
- {{ end }}
- {{ if and (ne .Params.price "") (ne .Params.price nil) }}
- {{ if eq .Params.price "free" }}
- Der Eintritt ist frei.
- {{ else }}
- Eintritt: {{ .Params.price }}
- {{ end }}
- {{ end }}
- {{ if and (ne .Params.register "") (ne .Params.register nil) }}
- Anmeldung unter {{ .Params.register | markdownify }} erwünscht
- {{ end }}
- {{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
- Es gilt die {{ .Params.covid }} Regel
- {{ end }}
- {{ if and (ne .Params.contact "") (ne .Params.contact nil) }}
- Kontakt: {{ .Params.contact }}
- {{ end }}
-
-
-
-
-{{ end }}
+ {{ if eq .Description "nottranslated" }}
+ {{ partial "orga/nottranslated.html" . }}
+ {{ else if eq .Description "generator" }}
+ {{ partial "orga/generator.html" . }}
+ {{ else }}
+ {{ partial "single/article" . }}
+ {{ end }}
{{ end }}
diff --git a/themes/buha/layouts/partials/generator.html b/themes/buha/layouts/partials/orga/generator.html
similarity index 100%
rename from themes/buha/layouts/partials/generator.html
rename to themes/buha/layouts/partials/orga/generator.html
diff --git a/themes/buha/layouts/partials/nottranslated.html b/themes/buha/layouts/partials/orga/nottranslated.html
similarity index 100%
rename from themes/buha/layouts/partials/nottranslated.html
rename to themes/buha/layouts/partials/orga/nottranslated.html
diff --git a/themes/buha/layouts/partials/single/article.html b/themes/buha/layouts/partials/single/article.html
new file mode 100644
index 00000000..aca4aeb1
--- /dev/null
+++ b/themes/buha/layouts/partials/single/article.html
@@ -0,0 +1,48 @@
+
+
+{{- .Title -}}
+
+
+ {{ if and (ne .Params.when "") (ne .Params.when nil) }}
+
+
+
\ No newline at end of file
{{ .Params.when }}
+ {{ end }}
+ {{ if and (ne .Params.price "") (ne .Params.price nil) }}
+ {{ if eq .Params.price "free" }}
+ Der Eintritt ist frei.
+ {{ else }}
+ Eintritt: {{ .Params.price }}
+ {{ end }}
+ {{ end }}
+ {{ if and (ne .Params.register "") (ne .Params.register nil) }}
+ Anmeldung unter {{ .Params.register | markdownify }} erwünscht
+ {{ end }}
+ {{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
+ Es gilt die {{ .Params.covid }} Regel
+ {{ end }}
+ {{ if and (ne .Params.contact "") (ne .Params.contact nil) }}
+ Kontakt: {{ .Params.contact }}
+ {{ end }}
+