Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spech66/materialize-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2019-09-29 12:44:16 +0300
committerSebastian Pech <windows@spech.de>2019-09-29 12:44:16 +0300
commit670ed4c56cabc2137e4c815f8178fb6a2d0c52f1 (patch)
treee93d5b5d6fbd88abeaacf02ba6676cffb8f5a6b3
parentf491c453b9d699bf6462dbb7983f674db11e7c74 (diff)
taxonomy translation fix
-rw-r--r--exampleSite/config.toml68
-rw-r--r--i18n/de.toml10
-rw-r--r--i18n/en.toml10
-rw-r--r--layouts/_default/terms.html2
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 = "<i class='fas fa-heart'></i>" # FontAwesone has more love ;-)
[[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 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 @@
<div class="col s12 m12">
<div class="card">
<div class="card-content">
- <h1 class="card-title">{{ .Title }}</h1>
+ <h1 class="card-title">{{ i18n .Title }}</h1>
{{ range $key, $value := .Data.Terms }}
<a href="#{{ $key | urlize }}"><span>{{ $key }}</span> <span class="grey-text">({{ $value.Count }})</span></a>&nbsp;&nbsp;
{{ end}}