diff --git a/data/en/references.yaml b/data/en/references.yaml deleted file mode 100644 index 9c7f2e9..0000000 --- a/data/en/references.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -by: by diff --git a/data/es/references.yaml b/data/es/references.yaml deleted file mode 100644 index 961d45b..0000000 --- a/data/es/references.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -by: por diff --git a/themes/hugo-bearcub/i18n/en.toml b/themes/hugo-bearcub/i18n/en.toml index 15a8569..3ab0476 100644 --- a/themes/hugo-bearcub/i18n/en.toml +++ b/themes/hugo-bearcub/i18n/en.toml @@ -11,4 +11,10 @@ other = "Reply to this post by email" [skip-link] - other = "Skip to main content" \ No newline at end of file + other = "Skip to main content" + +[references-by] + other = "by" + +[post-references-author] + other = "por {{ .author }}" \ No newline at end of file diff --git a/themes/hugo-bearcub/i18n/es.toml b/themes/hugo-bearcub/i18n/es.toml new file mode 100644 index 0000000..5699034 --- /dev/null +++ b/themes/hugo-bearcub/i18n/es.toml @@ -0,0 +1,5 @@ +[references-by] + other = "por" + +[post-references-author] + other = "por {{ .author }}" \ No newline at end of file diff --git a/themes/hugo-bearcub/layouts/_default/rss.xml b/themes/hugo-bearcub/layouts/_default/rss.xml index 6b7cdc1..ad83520 100644 --- a/themes/hugo-bearcub/layouts/_default/rss.xml +++ b/themes/hugo-bearcub/layouts/_default/rss.xml @@ -69,7 +69,7 @@ {{ $data := index .Site.Data .Site.Language.Lang }} {{ range (.Params.references) }} - {{ `
` | safeHTML }}{{ .name }}{{ `` | safeHTML }} {{ $data.references.by }} {{ .author }}: {{ .description }}{{ `
` | safeHTML }} + {{ `` | safeHTML }}{{ .name }}{{ `` | safeHTML }} {{ i18n "references-by" }} {{ .author }}: {{ .description }}{{ `
` | safeHTML }} {{ end }} {{ .Content | safeHTML }} diff --git a/themes/hugo-bearcub/layouts/_default/single.html b/themes/hugo-bearcub/layouts/_default/single.html index 87a7fa4..4f1c73b 100644 --- a/themes/hugo-bearcub/layouts/_default/single.html +++ b/themes/hugo-bearcub/layouts/_default/single.html @@ -13,7 +13,7 @@ {{ range (.Params.references) }}{{ $data.references.by }} {{ .author }}
+{{ i18n "post-references-author" . }}
{{ .description }}