Replace more hardcoded strings with their i18nized versions.

This commit is contained in:
Danila Fedorin 2020-08-12 19:15:14 -07:00
parent 7d1fcdb0c5
commit 8557dc4399
4 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,9 @@ other = "Resume"
[Tags] [Tags]
other = "Tags" other = "Tags"
[RecentPosts]
other = "Recent posts"
[AllPosts] [AllPosts]
other = "All Posts" other = "All Posts"

View File

@ -10,6 +10,9 @@ other = "Резюме"
[Tags] [Tags]
other = "Метки" other = "Метки"
[RecentPosts]
other = "Недавние статьи"
[AllPosts] [AllPosts]
other = "Все Статьи" other = "Все Статьи"

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
Recent posts: {{ i18n "RecentPosts" }}:
<ul class="post-list"> <ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }} {{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }} {{ partial "post.html" . }}

View File

@ -1,5 +1,5 @@
{{ define "main" }} {{ define "main" }}
<h2>{{ .Title }}</h2> <h2>{{ i18n "Tags" }}</h2>
{{ i18n "AllTags" }} {{ i18n "AllTags" }}
<ul> <ul>