From cee2381107d67fb1d36706c58590484f6a246bf5 Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 6 Apr 2022 19:07:24 +0200 Subject: [PATCH] remove old generator --- .../partials/misc/generator/content.html | 2 - .../partials/categories_and_tags.html | 60 ------------------- .../misc/generator/partials/expand.html | 2 - .../misc/generator/partials/input_line.html | 2 - .../misc/generator/partials/truefalse.html | 5 -- .../partials/misc/generator/submit.html | 3 - .../layouts/partials/misc/generator/tags.html | 25 -------- 7 files changed, 99 deletions(-) delete mode 100644 themes/buha/layouts/partials/misc/generator/content.html delete mode 100644 themes/buha/layouts/partials/misc/generator/partials/categories_and_tags.html delete mode 100644 themes/buha/layouts/partials/misc/generator/partials/expand.html delete mode 100644 themes/buha/layouts/partials/misc/generator/partials/input_line.html delete mode 100644 themes/buha/layouts/partials/misc/generator/partials/truefalse.html delete mode 100644 themes/buha/layouts/partials/misc/generator/submit.html delete mode 100644 themes/buha/layouts/partials/misc/generator/tags.html diff --git a/themes/buha/layouts/partials/misc/generator/content.html b/themes/buha/layouts/partials/misc/generator/content.html deleted file mode 100644 index f3b0c90b..00000000 --- a/themes/buha/layouts/partials/misc/generator/content.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/themes/buha/layouts/partials/misc/generator/partials/categories_and_tags.html b/themes/buha/layouts/partials/misc/generator/partials/categories_and_tags.html deleted file mode 100644 index 61b1e87c..00000000 --- a/themes/buha/layouts/partials/misc/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 "misc/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 "misc/generator/partials/input_line" (dict "name" $in0) }} - {{ end }} -
- - diff --git a/themes/buha/layouts/partials/misc/generator/partials/expand.html b/themes/buha/layouts/partials/misc/generator/partials/expand.html deleted file mode 100644 index bd41274b..00000000 --- a/themes/buha/layouts/partials/misc/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/misc/generator/partials/input_line.html b/themes/buha/layouts/partials/misc/generator/partials/input_line.html deleted file mode 100644 index 6d3f73d9..00000000 --- a/themes/buha/layouts/partials/misc/generator/partials/input_line.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/themes/buha/layouts/partials/misc/generator/partials/truefalse.html b/themes/buha/layouts/partials/misc/generator/partials/truefalse.html deleted file mode 100644 index a07afe06..00000000 --- a/themes/buha/layouts/partials/misc/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/misc/generator/submit.html b/themes/buha/layouts/partials/misc/generator/submit.html deleted file mode 100644 index c25b94b5..00000000 --- a/themes/buha/layouts/partials/misc/generator/submit.html +++ /dev/null @@ -1,3 +0,0 @@ -
- -
diff --git a/themes/buha/layouts/partials/misc/generator/tags.html b/themes/buha/layouts/partials/misc/generator/tags.html deleted file mode 100644 index 095ad87c..00000000 --- a/themes/buha/layouts/partials/misc/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 "misc/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