diff options
author | Sebastian Pech <windows@spech.de> | 2019-09-29 12:44:22 +0300 |
---|---|---|
committer | Sebastian Pech <windows@spech.de> | 2019-09-29 12:44:22 +0300 |
commit | 96c9da5df0bda8a539b051ec9599512bc0d8bcce (patch) | |
tree | eb825b797e7c674ef94963dc8bb52f824e1f3034 | |
parent | a399502710e9ebde3ca178286b8ceca5817529d8 (diff) |
taxonomy translation fix
-rw-r--r-- | exampleSite/config.toml | 68 | ||||
-rw-r--r-- | i18n/de.toml | 10 | ||||
-rw-r--r-- | i18n/en.toml | 10 | ||||
-rw-r--r-- | layouts/_default/terms.html | 2 |
4 files changed, 56 insertions, 34 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b8a3980..6568f02 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -65,43 +65,43 @@ theme="bootstrap-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] @@ -114,23 +114,25 @@ theme="bootstrap-bp-hugo-theme" pre = "<i class='fas fa-heart'></i>" [[menu.footer]] - identifier = "xxx" - name = "xxx" - url = "/xxx/" + identifier = "about" + name = "About" + url = "/about/" weight = 10 + pre = "<i class='fas fa-address-card'></i>" [[menu.footer]] identifier = "categories" name = "Categories" url = "/categories/" weight = 20 + pre = "<i class='fas fa-folder'></i>" [[menu.footer]] identifier = "tags" name = "Tags" url = "/tags/" weight = 30 - pre = "<i class='fas fa-heart'></i>" + pre = "<i class='fas fa-tags'></i>" [taxonomies] diff --git a/i18n/de.toml b/i18n/de.toml index 6bc2522..ad77050 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -19,3 +19,13 @@ other="Übersetzungen" [themeby] other = "Theme von" + +# 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 8ca46b8..64abb62 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -19,3 +19,13 @@ other="Translations" [themeby] other = "Theme 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 92b86a7..72ff42c 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -4,7 +4,7 @@ <div class="mb-3"> <div class="card"> <div class="card-body"> - <h1>{{ .Title }}</h1> + <h1>{{ i18n .Title }}</h1> {{ range $key, $value := .Data.Terms }} <a href="#{{ $key | urlize }}" class="badge badge-primary"><span>{{ $key }}</span> <span class="badge badge-light">{{ $value.Count }}</span></a> {{ end}} |