From 670ed4c56cabc2137e4c815f8178fb6a2d0c52f1 Mon Sep 17 00:00:00 2001 From: Sebastian Pech Date: Sun, 29 Sep 2019 11:44:16 +0200 Subject: taxonomy translation fix --- exampleSite/config.toml | 68 +++++++++++++++++++++++---------------------- i18n/de.toml | 10 +++++++ i18n/en.toml | 10 +++++++ layouts/_default/terms.html | 2 +- 4 files changed, 56 insertions(+), 34 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 99f4295..9e38bd6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -65,43 +65,43 @@ theme="materialize-bp-hugo-theme" # Code from https://themes.gohugo.io/future-imperfect/ theme [social] # Coding Communities - github = "a" - gitlab = "a" - stackoverflow = "a" # User Number - bitbucket = "a" - jsfiddle = "a" - codepen = "a" + github = "spech66" + gitlab = "" + stackoverflow = "" # User Number + bitbucket = "" + jsfiddle = "" + codepen = "" # Visual Art Communities - deviantart = "a" - flickr = "a" - behance = "a" - dribbble = "a" + deviantart = "" + flickr = "" + behance = "" + dribbble = "" # Publishing Communities - wordpress = "a" - medium = "a" + wordpress = "" + medium = "" # Professional/Business Oriented Communities - linkedin = "a" - linkedin_company = "a" - foursquare = "a" - xing = "a" - slideshare = "a" + linkedin = "sebastian-pech" + linkedin_company = "" + foursquare = "" + xing = "Sebastian_Pech3" + slideshare = "" # Social Networks facebook = "spechde" # https://fb.me/flowartsde - googleplus = "a" - reddit = "a" - quora = "a" + googleplus = "" + reddit = "" + quora = "" youtube = "" - vimeo = "a" - whatsapp = "a" # WhatsApp Number + vimeo = "" + whatsapp = "" # WhatsApp Number instagram = "sebastian_pech" - tumblr = "a" - twitter = "a" - skype = "a" - snapchat = "a" - pinterest = "a" - telegram = "a" + tumblr = "" + twitter = "spech84" + skype = "" + snapchat = "" + pinterest = "" + telegram = "" # Email - email = "a" + email = "" [menu] @@ -115,23 +115,25 @@ theme="materialize-bp-hugo-theme" # pre = "" # FontAwesone has more love ;-) [[menu.footer]] - identifier = "xxx" - name = "xxx" - url = "/xxx/" + identifier = "about" + name = "About" + url = "/about/" weight = 10 + pre = "" [[menu.footer]] identifier = "categories" name = "Categories" url = "/categories/" weight = 20 + pre = "" [[menu.footer]] identifier = "tags" name = "Tags" url = "/tags/" weight = 30 - pre = "" + pre = "" [taxonomies] diff --git a/i18n/de.toml b/i18n/de.toml index e32f7be..dc886fe 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -22,3 +22,13 @@ other = "Theme von" [madeby] other = "Erstellt mit" + +# Taxonomoy title hack +[Categories] +other = "Kategorien" +[Categorie] +other = "Kategorien" +[Tags] +other = "Tags" +[Tag] +other = "Tag" diff --git a/i18n/en.toml b/i18n/en.toml index 23728cf..dca9209 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -22,3 +22,13 @@ other = "Theme by" [madeby] other = "Made by" + +# Taxonomoy title hack +[Categories] +other = "Categories" +[Categorie] +other = "Categorie" +[Tags] +other = "Tags" +[Tag] +other = "Tag" diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index d8650dc..95fcb26 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -5,7 +5,7 @@
-

{{ .Title }}

+

{{ i18n .Title }}

{{ range $key, $value := .Data.Terms }} {{ $key }} ({{ $value.Count }})   {{ end}} -- cgit v1.2.3