diff --git a/content/orga/_index.de.md b/content/orga/_index.de.md deleted file mode 100644 index 3515d70b..00000000 --- a/content/orga/_index.de.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -type: "orga" ---- \ No newline at end of file diff --git a/content/orga/flyertext.de.md b/content/orga/flyertext.de.md deleted file mode 100644 index 9ccfb4c5..00000000 --- a/content/orga/flyertext.de.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Flyertext" -date: 2021-06-22T23:00:00+02:00 ---- -**Der folgende Text muss auf jedem Flyer gedruckt werden:** - -Das Bunte Haus ist kein Ort für Rassismus, Antisemitismus, Sexismus oder Diskriminierung aufgrund sexueller Orientierungen! Wenn ihr dumm angemacht, angefasst oder sonst wie belästigt werdet meldet euch an der Theke, der Kasse oder bei den Türsteher*innen. Ihr entscheidet selbst, wo eure Grenzen liegen! \ No newline at end of file diff --git a/content/orga/generator.de.md b/content/orga/generator.de.md deleted file mode 100644 index 6412bcb6..00000000 --- a/content/orga/generator.de.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Generator" -date: 2021-06-22T23:00:00+02:00 -description: "generator" -type: "tools" ---- -Hier kannst du einen neuen Artikel generieren. - -**Einträge mit * sind minimal erforderlich.** \ No newline at end of file diff --git a/content/orga/nottranslated.de.md b/content/orga/nottranslated.de.md deleted file mode 100644 index 391bb6d6..00000000 --- a/content/orga/nottranslated.de.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Nicht übersetzte Seiten" -date: 2021-06-22T23:00:00+02:00 -description: "nottranslated" -type: "tools" ---- diff --git a/content/orga/partyunterlagen.de.md b/content/orga/partyunterlagen.de.md deleted file mode 100644 index 0144ad26..00000000 --- a/content/orga/partyunterlagen.de.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "Partyunterlagen" -date: 2021-06-22T23:00:00+02:00 ---- -## Wie geht ne Party? - -- Ankommen -- Aufbauen -- Feiern -- Auraeumen diff --git a/themes/buha/layouts/_default/contact.html b/themes/buha/layouts/_default/contact.html index 4b836f7b..8767f70e 100644 --- a/themes/buha/layouts/_default/contact.html +++ b/themes/buha/layouts/_default/contact.html @@ -10,6 +10,6 @@ {{- $pic := index (.Resources.ByType "image") 0 -}}
- {{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }} + {{ partial "contentlayouts/article.html" (dict "context" . "type" "contact") }}
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/themes/buha/layouts/_default/orga.html b/themes/buha/layouts/_default/orga.html deleted file mode 100644 index 42d16b58..00000000 --- a/themes/buha/layouts/_default/orga.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "title" }} -

Orga

-{{ end }} - -{{ define "main" }} -
- {{ range .Pages }} - {{ .Name }}
- {{ end }} -
-{{ end }} \ No newline at end of file diff --git a/themes/buha/layouts/_default/single.html b/themes/buha/layouts/_default/single.html index 9082bf1e..33fed25b 100644 --- a/themes/buha/layouts/_default/single.html +++ b/themes/buha/layouts/_default/single.html @@ -8,10 +8,12 @@ {{ define "main" }} - {{ if eq .Description "nottranslated" }} - {{ partial "orga/nottranslated.html" . }} - {{ else if eq .Description "generator" }} - {{ partial "orga/generator.html" . }} + {{ if eq .Params.tool "not_translated" }} +
+ {{ partial "misc/nottranslated.html" . }} +
+ {{ else if eq .Params.tool "generator" }} + {{ partial "misc/generator.html" . }} {{ else }}
{{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }} @@ -20,7 +22,7 @@ {{ end }} {{ define "ab" }} - {{ if ne .Section "orga" }} + {{ if ne .Section "misc" }}
Verfasst am
diff --git a/themes/buha/layouts/partials/contentlayouts/article.html b/themes/buha/layouts/partials/contentlayouts/article.html index 95cd8ee5..7b2706ea 100644 --- a/themes/buha/layouts/partials/contentlayouts/article.html +++ b/themes/buha/layouts/partials/contentlayouts/article.html @@ -28,7 +28,7 @@ {{ $contact = true }} {{ end }} - {{ if eq $showmeta "true" }} + {{ if and (eq $showmeta "true") (ne .type "contact") }}
{{ if eq $when true }}
{{ .context.Params.when }}
@@ -72,12 +72,13 @@ {{ end }}
- {{ if eq .type "article" }}{{ end }} + {{ if ne .type "list" }}{{ end }} - {{ if eq .type "article" }}{{ end }} + {{ if ne .type "list" }}{{ end }}
{{- if or .context.Content .context.Summary -}}
+ {{ if eq .type "contact" }}{{ partial "contact.html" }}{{ end }} {{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }} {{ if and .context.Truncated (eq .type "list") }}
{{- i18n "readmore" -}}..
diff --git a/themes/buha/layouts/partials/orga/generator.html b/themes/buha/layouts/partials/orga/generator.html deleted file mode 100644 index a636d7b2..00000000 --- a/themes/buha/layouts/partials/orga/generator.html +++ /dev/null @@ -1,39 +0,0 @@ -{{ define "css" }} - -{{ end }} -
-
-{{ .Content }} -
- - -
- {{ partial "orga/generator/partials/input_line" (dict "name" "title" "mandatory" "true") }} - {{ partial "orga/generator/content" }} - {{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "categories" "expanded" "true" "new" "false") }} - {{ partial "orga/generator/partials/expand" (dict "id" "isevent" "name" "isevent" "translation" "aufklappen" ) }} -
- {{ partial "orga/generator/partials/input_line" (dict "name" "when" "mandatory" "false" "eg" "Montag, 13. September 2022, 19Uhr") }} - {{ partial "orga/generator/partials/input_line" (dict "name" "price" "mandatory" "false" "eg" "3€ or free") }} - {{ partial "orga/generator/partials/input_line" (dict "name" "registeremail" "mandatory" "false" "eg" "info@bunteshaus.de") }} - {{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "events" "new" "false") }} -
- {{ partial "orga/generator/partials/expand" (dict "id" "Verschiedenes" "name" "misc" "translation" "aufklappen" ) }} -
- {{ partial "orga/generator/partials/truefalse" (dict "name" "featured" "expanded" "true") }} - {{ partial "orga/generator/partials/truefalse" (dict "name" "about" "expanded" "true") }} - {{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "tags" "new" "true") }} - -
- - - - {{ partial "orga/generator/submit" }} - -
- - -
- - \ No newline at end of file diff --git a/themes/buha/layouts/partials/orga/generator/content.html b/themes/buha/layouts/partials/orga/generator/content.html deleted file mode 100644 index f3b0c90b..00000000 --- a/themes/buha/layouts/partials/orga/generator/content.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/themes/buha/layouts/partials/orga/generator/partials/categories_and_tags.html b/themes/buha/layouts/partials/orga/generator/partials/categories_and_tags.html deleted file mode 100644 index e48f42c7..00000000 --- a/themes/buha/layouts/partials/orga/generator/partials/categories_and_tags.html +++ /dev/null @@ -1,60 +0,0 @@ -{{ $in0 := .name }} -{{ $name := .name }} -{{ $id := .name }} -{{ $newname := .name }} - -{{ if i18n $name }} - {{ $name = i18n $name }} -{{ end }} - -{{ $openname := printf "open%s" $in0 }} -{{- $finale := slice -}} -{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }} -{{ if eq .name "tags" }} - {{ range $pages }} - {{- if .Params.tags -}} - {{- $finale = $finale | append .Params.tags -}} - {{ end }} - {{ end }} - {{ $id = $name }} -{{ else }} - {{ range $pages }} - {{ range .Param $in0 }} - {{- $finale = $finale | append . -}} - {{ end }} - {{ end }} - {{ if ne .name "categories" }} - {{ $cat := "categories" }} - {{ if i18n $cat }} - {{ $cat = i18n $cat }} - {{ end }} - {{ $id = printf "%s %s" $name $cat }} - {{ else }} - {{ $id = $name }} - {{ end }} -{{ end }} -{{- $finale = $finale | uniq -}} -{{ if eq .expanded "true" }} -
- {{ $id }}{{- if eq .mandatory "true" -}}*{{- end -}} -{{ else }} - {{ partial "orga/generator/partials/expand" (dict "id" $id "name" $openname ) }} -
-{{ end }} -
- {{ range sort $finale }} - {{ $n := . | i18n }} - {{ if not $n }} - {{ $n = . }} - {{ end }} -
- -
- {{ end }} -
- {{ if eq .new "true" }} - {{ partial "orga/generator/partials/input_line" (dict "name" $in0) }} - {{ end }} -
- - diff --git a/themes/buha/layouts/partials/orga/generator/partials/expand.html b/themes/buha/layouts/partials/orga/generator/partials/expand.html deleted file mode 100644 index bd41274b..00000000 --- a/themes/buha/layouts/partials/orga/generator/partials/expand.html +++ /dev/null @@ -1,2 +0,0 @@ -
{{ if i18n .id }}{{ i18n .id }}{{ else }}{{ .id }}{{ end }}
{{ if i18n "expand" }}{{ i18n "expand" }}{{ else }}{{ "expand" }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}
- diff --git a/themes/buha/layouts/partials/orga/generator/partials/input_line.html b/themes/buha/layouts/partials/orga/generator/partials/input_line.html deleted file mode 100644 index 6d3f73d9..00000000 --- a/themes/buha/layouts/partials/orga/generator/partials/input_line.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/themes/buha/layouts/partials/orga/generator/partials/truefalse.html b/themes/buha/layouts/partials/orga/generator/partials/truefalse.html deleted file mode 100644 index a07afe06..00000000 --- a/themes/buha/layouts/partials/orga/generator/partials/truefalse.html +++ /dev/null @@ -1,5 +0,0 @@ -
-
{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}} - -
-
\ No newline at end of file diff --git a/themes/buha/layouts/partials/orga/generator/submit.html b/themes/buha/layouts/partials/orga/generator/submit.html deleted file mode 100644 index c25b94b5..00000000 --- a/themes/buha/layouts/partials/orga/generator/submit.html +++ /dev/null @@ -1,3 +0,0 @@ -
- -
diff --git a/themes/buha/layouts/partials/orga/generator/tags.html b/themes/buha/layouts/partials/orga/generator/tags.html deleted file mode 100644 index e9af4adf..00000000 --- a/themes/buha/layouts/partials/orga/generator/tags.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }} -{{- $tags := slice -}} -{{ range $pages }} - {{- if .Params.tags -}} - {{- $tags = $tags | append .Params.tags -}} - {{ end }} -{{ end }} -{{- $tags := $tags | uniq -}} -{{ partial "orga/generator/partials/expand" (dict "id" "tags" "name" "opentag" "translation" "aufklappen" ) }} -
-
- {{ range sort $tags }} - {{ $n := . | i18n }} - {{ if not $n }} - {{ $n = . }} - {{ end }} -
- -
- {{ end }} -
- - - -
\ No newline at end of file diff --git a/themes/buha/layouts/partials/orga/nottranslated.html b/themes/buha/layouts/partials/orga/nottranslated.html deleted file mode 100644 index 656ffa44..00000000 --- a/themes/buha/layouts/partials/orga/nottranslated.html +++ /dev/null @@ -1,27 +0,0 @@ -
- {{ $l1 := slice }} - {{ $l2 := slice }} - {{ range $.Site.Home.Translations }} - {{ $l1 = $l1 | append .Language }} - {{ end }} - - {{ $all_lang := $.Site.Home.Translations }} - {{ range site.RegularPages }} - {{ $missing := slice}} - {{ if .Translations }} - {{ range .Translations }} - {{ $l2 = $l2 | append .Language }} - {{ end }} - {{ $final := $l1 | complement $l2 }} - {{ range $final }} - {{ $missing = $missing | append . }} - {{ end }} - {{ else }} - {{ $missing = $missing | append "all translations" }} - {{ end }} - {{ if $missing }} - {{ .Name }}: -
missing: {{ index $missing 0 }}
- {{ end }} - {{ end }} -
\ No newline at end of file diff --git a/themes/buha/layouts/partials/structure/footer.html b/themes/buha/layouts/partials/structure/footer.html index e94fc052..0c855675 100644 --- a/themes/buha/layouts/partials/structure/footer.html +++ b/themes/buha/layouts/partials/structure/footer.html @@ -17,7 +17,7 @@ {{ end }} {{- $archive | strings.FirstUpper -}}

{{- end -}} - Orga

+ Misc