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
|
|
@ -11,4 +11,10 @@
|
|||
other = "Reply to this post by email"
|
||||
|
||||
[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 }}
|
||||
{{ 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 }}
|
||||
|
||||
{{ .Content | safeHTML }}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{{ range (.Params.references) }}
|
||||
<div class="blog-reference">
|
||||
<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>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue