Move translated text to the proper location

This commit is contained in:
Miguel de la Cruz 2024-01-12 00:08:31 +01:00
parent 3a45fb2707
commit cd6a0d7bcf
6 changed files with 14 additions and 7 deletions

View file

@ -1,2 +0,0 @@
---
by: by

View file

@ -1,2 +0,0 @@
---
by: por

View file

@ -11,4 +11,10 @@
other = "Reply to this post by email" other = "Reply to this post by email"
[skip-link] [skip-link]
other = "Skip to main content" other = "Skip to main content"
[references-by]
other = "by"
[post-references-author]
other = "por {{ .author }}"

View file

@ -0,0 +1,5 @@
[references-by]
other = "por"
[post-references-author]
other = "por {{ .author }}"

View file

@ -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 }}

View file

@ -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 }}