From 9323c0cd7579e1448f2506ef659cb622dd66d9c4 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 3 Apr 2022 02:33:46 +0200 Subject: [PATCH] small fixes --- themes/buha/i18n/de.toml | 14 +++++++++++++- themes/buha/layouts/_default/baseof.html | 8 ++++---- themes/buha/layouts/_default/list.html | 2 +- themes/buha/layouts/index.html | 2 +- themes/buha/layouts/partials/orga.html | 18 ------------------ .../buha/layouts/partials/single/article.html | 18 +++++++++++++++++- .../partials/{ => structure}/footer.html | 0 .../layouts/partials/{ => structure}/head.html | 0 .../partials/{ => structure}/header.html | 0 .../partials/{ => structure}/sidebar.html | 2 +- .../partials/{ => structure}/submenu.html | 6 +----- 11 files changed, 38 insertions(+), 32 deletions(-) delete mode 100644 themes/buha/layouts/partials/orga.html rename themes/buha/layouts/partials/{ => structure}/footer.html (100%) rename themes/buha/layouts/partials/{ => structure}/head.html (100%) rename themes/buha/layouts/partials/{ => structure}/header.html (100%) rename themes/buha/layouts/partials/{ => structure}/sidebar.html (94%) rename themes/buha/layouts/partials/{ => structure}/submenu.html (81%) diff --git a/themes/buha/i18n/de.toml b/themes/buha/i18n/de.toml index 2bdb6eae..abdf263d 100644 --- a/themes/buha/i18n/de.toml +++ b/themes/buha/i18n/de.toml @@ -236,4 +236,16 @@ other = "Über uns" other = "Wichtige Neuigkeiten" [all] -other = "Alle" \ No newline at end of file +other = "Alle" + +[ku] +other = "Kurdî" + +[en] +other = "English" + +[de] +other = "Deutsch" + +[translations] +other = "Übersetzungen" \ No newline at end of file diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index 8a397384..665dd361 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -1,12 +1,12 @@ - {{- partial "head.html" . -}} + {{- partial "structure/head.html" . -}} {{ block "css" . -}}{{- end }}
- {{ partialCached "header" . }} - {{ partial "submenu" . }} + {{ partialCached "structure/header" . }} + {{ partial "structure/submenu" . }}
@@ -20,7 +20,7 @@
- {{- partial "footer" . -}} + {{- partial "structure/footer" . -}}
diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html index 7b058001..9a677eaa 100644 --- a/themes/buha/layouts/_default/list.html +++ b/themes/buha/layouts/_default/list.html @@ -194,5 +194,5 @@ {{- end -}} {{ define "sidebar" }} - {{- partial "sidebar" . }} + {{- partial "structure/sidebar" . }} {{ end }} \ No newline at end of file diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index 79e23db5..42bcdbcd 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -232,5 +232,5 @@ {{ end }} {{ define "sidebar" }} - {{- partial "sidebar" . }} + {{- partial "structure/sidebar" . }} {{ end }} \ No newline at end of file diff --git a/themes/buha/layouts/partials/orga.html b/themes/buha/layouts/partials/orga.html deleted file mode 100644 index 0f76973b..00000000 --- a/themes/buha/layouts/partials/orga.html +++ /dev/null @@ -1,18 +0,0 @@ - {{ $all_lang := $.Site.Home.Translations }} - {{ range site.RegularPages }} - {{ .Name }}: - {{ if .Translations }} - {{ range .Translations }} - {{ $t1 := .Language }} - {{ range $all_lang }} - {{- $a := .Language -}} - {{- $b := $.Site.Language.Lang -}} - {{ if ne $t1 .Language }} - missing: {{ .Language }}
- {{ end }} - {{ end }} - {{ end }} - {{ else }} - no translations
- {{ end }} - {{ end }} \ No newline at end of file diff --git a/themes/buha/layouts/partials/single/article.html b/themes/buha/layouts/partials/single/article.html index aca4aeb1..0f4ecda9 100644 --- a/themes/buha/layouts/partials/single/article.html +++ b/themes/buha/layouts/partials/single/article.html @@ -45,4 +45,20 @@ - \ No newline at end of file +
+ {{ if .IsTranslated }} +
+ {{ "Translations" }} + {{ range .Translations }} +
  • + {{ T .Lang }} +
  • + {{ end }} +
    + {{ end }} +
    + Verfasst am
    + {{ .Date | time.Format ":date_full" }} +
    +
    + diff --git a/themes/buha/layouts/partials/footer.html b/themes/buha/layouts/partials/structure/footer.html similarity index 100% rename from themes/buha/layouts/partials/footer.html rename to themes/buha/layouts/partials/structure/footer.html diff --git a/themes/buha/layouts/partials/head.html b/themes/buha/layouts/partials/structure/head.html similarity index 100% rename from themes/buha/layouts/partials/head.html rename to themes/buha/layouts/partials/structure/head.html diff --git a/themes/buha/layouts/partials/header.html b/themes/buha/layouts/partials/structure/header.html similarity index 100% rename from themes/buha/layouts/partials/header.html rename to themes/buha/layouts/partials/structure/header.html diff --git a/themes/buha/layouts/partials/sidebar.html b/themes/buha/layouts/partials/structure/sidebar.html similarity index 94% rename from themes/buha/layouts/partials/sidebar.html rename to themes/buha/layouts/partials/structure/sidebar.html index e2968a76..47afe100 100644 --- a/themes/buha/layouts/partials/sidebar.html +++ b/themes/buha/layouts/partials/structure/sidebar.html @@ -16,7 +16,7 @@

    {{ "Languages" }}

    {{ range .Translations }} {{ if ne .Lang $.Lang }} -
  • {{- .Lang -}}
  • +
  • {{- T .Lang -}}
  • {{ end }} {{ end }} {{ end }} diff --git a/themes/buha/layouts/partials/submenu.html b/themes/buha/layouts/partials/structure/submenu.html similarity index 81% rename from themes/buha/layouts/partials/submenu.html rename to themes/buha/layouts/partials/structure/submenu.html index 4243d7f5..74602973 100644 --- a/themes/buha/layouts/partials/submenu.html +++ b/themes/buha/layouts/partials/structure/submenu.html @@ -5,10 +5,6 @@
  • {{ "all" | T }}
  • - {{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }} {{ $orig := $taxonomyname }} {{ if ne (i18n $taxonomyname) "" }} @@ -25,7 +21,7 @@
  • {{- .Lang -}}
  • {{ end }} {{ end }} - {{ end }} + {{ end }}