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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Vogt <git@henvo.de>2017-06-18 10:54:58 +0300
committerAdrián Moreno <adrian@morenomartinez.com>2017-06-19 15:29:47 +0300
commitd2ecb913bea11387d9b557a4bbcf00f4c09373ea (patch)
treee9472b29149d492cee7a11c484e14671feb5c595
parent86ab7789fa61babf416a56470d65e120e363cf80 (diff)
Add i18n support for article meta information
- writtenBy (already available in i18n translations) - publishedOn
-rw-r--r--i18n/ca.yaml3
-rw-r--r--i18n/de.yaml2
-rw-r--r--i18n/en.yaml3
-rw-r--r--i18n/es.yaml3
-rw-r--r--i18n/fr.yaml3
-rw-r--r--i18n/ru.yaml2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/recent_posts.html4
9 files changed, 20 insertions, 4 deletions
diff --git a/i18n/ca.yaml b/i18n/ca.yaml
index 2530d39..560acf2 100644
--- a/i18n/ca.yaml
+++ b/i18n/ca.yaml
@@ -66,3 +66,6 @@
- id: older
translation: "Més antic"
+
+- id: publishedOn
+ translation: "el"
diff --git a/i18n/de.yaml b/i18n/de.yaml
index 1d0b099..91be5bf 100644
--- a/i18n/de.yaml
+++ b/i18n/de.yaml
@@ -67,3 +67,5 @@
- id: older
translation: "Älter"
+- id: publishedOn
+ translation: "am"
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 5233f0f..431fd47 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -66,3 +66,6 @@
- id: older
translation: "Older"
+
+- id: publishedOn
+ translation: "on"
diff --git a/i18n/es.yaml b/i18n/es.yaml
index b3d6f86..19097b9 100644
--- a/i18n/es.yaml
+++ b/i18n/es.yaml
@@ -66,3 +66,6 @@
- id: older
translation: "Más antiguo"
+
+- id: publishedOn
+ translation: "el"
diff --git a/i18n/fr.yaml b/i18n/fr.yaml
index cc4b29c..4752e4a 100644
--- a/i18n/fr.yaml
+++ b/i18n/fr.yaml
@@ -66,3 +66,6 @@
- id: older
translation: "Ancien"
+
+- id: publishedOn
+ translation: "sur"
diff --git a/i18n/ru.yaml b/i18n/ru.yaml
index 7a70e93..3bb4174 100644
--- a/i18n/ru.yaml
+++ b/i18n/ru.yaml
@@ -67,3 +67,5 @@
- id: older
translation: "Предыдущая запись"
+- id: publishedOn
+ translation: "на"
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index b55a145..c32ca15 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -42,7 +42,7 @@
<div class="clearfix">
<p class="author-category">
{{ if isset .Params "author" }}
- By <a href="#">{{ .Params.author }}</a>
+ {{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>
{{ end }}
{{ if isset .Params "categories" }}
{{ if gt (len .Params.categories) 0 }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 41ac7c1..5a87edf 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -24,7 +24,7 @@
<div class="col-md-9" id="blog-post">
- <p class="text-muted text-uppercase mb-small text-right">{{ if .Params.author }}By <a href="#">{{ .Params.author }}</a> | {{ end }}{{ .Date.Format .Site.Params.date_format }}</p>
+ <p class="text-muted text-uppercase mb-small text-right">{{ if .Params.author }}{{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a> | {{ end }}{{ .Date.Format .Site.Params.date_format }}</p>
<div id="post-content">
{{ .Content }}
diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html
index 9d639eb..660d61f 100644
--- a/layouts/partials/recent_posts.html
+++ b/layouts/partials/recent_posts.html
@@ -40,9 +40,9 @@
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<p class="author-category">
{{ with .Params.author }}
- By <a href="#">{{ . }}</a>
+ {{ i18n "authorBy" }} <a href="#">{{ . }}</a>
{{ end }}
- on {{ .Date.Format .Site.Params.date_format }}
+ {{ i18n "publishedOn" }} {{ .Date.Format .Site.Params.date_format }}
</p>
<p class="intro">{{ .Summary }}</p>
<p class="read-more">