diff --git a/themes/buha/i18n/de.toml b/themes/buha/i18n/de.toml index 2bdb6ea..abdf263 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 8a39738..665dd36 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 @@
diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html index 7b05800..9a677ea 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 79e23db..42bcdbc 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 0f76973..0000000 --- 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 aca4aeb..0f4ecda 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 e2968a7..47afe10 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 4243d7f..7460297 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 }}