More i18n strings and code style fixes.
This commit is contained in:
parent
f25ad69da2
commit
f53567394e
5 changed files with 49 additions and 13 deletions
18
i18n/en.toml
18
i18n/en.toml
|
|
@ -21,3 +21,21 @@ other = "Search"
|
|||
|
||||
[search_title]
|
||||
other = "Enter the terms you wish to search for."
|
||||
|
||||
[string_at]
|
||||
other = "at"
|
||||
|
||||
[string_by]
|
||||
other = "by"
|
||||
|
||||
[string_follow]
|
||||
other = "follow"
|
||||
|
||||
[string_in]
|
||||
other = "in"
|
||||
|
||||
[string_on]
|
||||
other = "on"
|
||||
|
||||
[string_recent_content]
|
||||
other = "Recent content"
|
||||
|
|
|
|||
18
i18n/sv.toml
18
i18n/sv.toml
|
|
@ -21,3 +21,21 @@ other = "Sök"
|
|||
|
||||
[search_title]
|
||||
other = "Ange de villkor du vill söka efter."
|
||||
|
||||
[string_at]
|
||||
other = "på"
|
||||
|
||||
[string_by]
|
||||
other = "av"
|
||||
|
||||
[string_follow]
|
||||
other = "följ"
|
||||
|
||||
[string_in]
|
||||
other = "i"
|
||||
|
||||
[string_on]
|
||||
other = "på"
|
||||
|
||||
[string_recent_content]
|
||||
other = "Senaste innehåll"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
{{ $length := (len $list) -}}
|
||||
{
|
||||
"version" : "https://jsonfeed.org/version/1",
|
||||
"title" : "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}",
|
||||
"description": "Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}",
|
||||
"title" : "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} {{ i18n "string_on" }} {{ end }}{{ .Site.Title }}{{ end }}",
|
||||
"description": "{{ i18n "string_recent_content" }} {{ if ne .Title .Site.Title }}{{ with .Title }}{{ i18n "string_in" }} {{ . }} {{ end }}{{ end }}{{ i18n "string_on" }} {{ .Site.Title }}",
|
||||
"home_page_url" : "{{ .Site.BaseURL }}",
|
||||
{{ with .OutputFormats.Get "JSON" -}}
|
||||
"feed_url" : "{{ .Permalink }}",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} {{ i18n "string_on" }} {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<description>{{ i18n "string_recent_content" }} {{ if ne .Title .Site.Title }}{{ with .Title }}{{ i18n "string_in" }} {{ . }} {{ end }}{{ end }}{{ i18n "string_on" }} {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{ with .Site.LanguageCode -}}
|
||||
<language>{{ . }}</language>
|
||||
|
|
|
|||
Loading…
Reference in a new issue