From fa8ba17f4336e16a37c310b888106af12a7a6b76 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 15:22:14 +0200 Subject: [PATCH] small fixes --- content/about/_index.de.md | 2 +- themes/buha/i18n/de.toml | 5 ++++- themes/buha/layouts/index.html | 6 +++--- themes/buha/layouts/partials/submenu.html | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/content/about/_index.de.md b/content/about/_index.de.md index c6ffb69..f37b344 100644 --- a/content/about/_index.de.md +++ b/content/about/_index.de.md @@ -7,4 +7,4 @@ Lerne unsere [Projekte](/bunteshaus/) kennen und schau, was wir unter [Selbstbes Wir machen Dinge und andere Dinge. Dabei verteilen wir Essen, organisieren Partys und machen Musik. -## Hier sind Details aller Projekte: \ No newline at end of file +**Hier sind Details aller Projekte:** \ No newline at end of file diff --git a/themes/buha/i18n/de.toml b/themes/buha/i18n/de.toml index ea04547..9c86d89 100644 --- a/themes/buha/i18n/de.toml +++ b/themes/buha/i18n/de.toml @@ -233,4 +233,7 @@ other = "weiterlesen" other = "Über uns" [featured] -other = "Wichtige Neuigkeiten" \ No newline at end of file +other = "Wichtige Neuigkeiten" + +[all] +other = "Alle" \ No newline at end of file diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index c5583c5..927d165 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -1,5 +1,5 @@ {{ define "title" }} -{{ .Title }} + {{ end }} {{ define "main" }} @@ -8,7 +8,7 @@ {{ .Content }} {{ end }} -

{{ "featured" | T }}

+ {{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.featured" "=" true) }}
@@ -58,7 +58,7 @@
{{ end }} -

{{ "news" | T }}

+ {{ $s := .Site.Params }} {{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.mainSections }} {{- $paginator := slice -}} diff --git a/themes/buha/layouts/partials/submenu.html b/themes/buha/layouts/partials/submenu.html index e3b57ff..bcf41d6 100644 --- a/themes/buha/layouts/partials/submenu.html +++ b/themes/buha/layouts/partials/submenu.html @@ -2,6 +2,7 @@
Termine ☰

+

  • {{ "all" | T }}
  • {{- $recurrent := where .Site.RegularPages "Params.recurrent" true }} {{ if $recurrent }}
  • {{ "recurrent" | T | humanize }}