Move translated text to the proper location
This commit is contained in:
parent
3a45fb2707
commit
cd6a0d7bcf
6 changed files with 14 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
by: by
|
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
by: por
|
|
|
@ -12,3 +12,9 @@
|
||||||
|
|
||||||
[skip-link]
|
[skip-link]
|
||||||
other = "Skip to main content"
|
other = "Skip to main content"
|
||||||
|
|
||||||
|
[references-by]
|
||||||
|
other = "by"
|
||||||
|
|
||||||
|
[post-references-author]
|
||||||
|
other = "por {{ .author }}"
|
5
themes/hugo-bearcub/i18n/es.toml
Normal file
5
themes/hugo-bearcub/i18n/es.toml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[references-by]
|
||||||
|
other = "por"
|
||||||
|
|
||||||
|
[post-references-author]
|
||||||
|
other = "por {{ .author }}"
|
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ $data := index .Site.Data .Site.Language.Lang }}
|
||||||
{{ range (.Params.references) }}
|
{{ range (.Params.references) }}
|
||||||
{{ `<p><a href="` | safeHTML }}{{ .url }}{{ `">` | safeHTML }}{{ .name }}{{ `</a>` | safeHTML }} {{ $data.references.by }} {{ .author }}: {{ .description }}{{ `</p>` | safeHTML }}
|
{{ `<p><a href="` | safeHTML }}{{ .url }}{{ `">` | safeHTML }}{{ .name }}{{ `</a>` | safeHTML }} {{ i18n "references-by" }} {{ .author }}: {{ .description }}{{ `</p>` | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ .Content | safeHTML }}
|
{{ .Content | safeHTML }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{ range (.Params.references) }}
|
{{ range (.Params.references) }}
|
||||||
<div class="blog-reference">
|
<div class="blog-reference">
|
||||||
<p class="blog-reference-title"><a href="{{ .url }}">{{ .name }}</a></p>
|
<p class="blog-reference-title"><a href="{{ .url }}">{{ .name }}</a></p>
|
||||||
<p class="blog-reference-subtitle">{{ $data.references.by }} {{ .author }}</p>
|
<p class="blog-reference-subtitle">{{ i18n "post-references-author" . }}</p>
|
||||||
<p class="blog-reference-description">{{ .description }}</p>
|
<p class="blog-reference-description">{{ .description }}</p>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue