diff --git a/i18n/en.toml b/i18n/en.toml index 72c6641..0653e75 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -24,10 +24,15 @@ other = "Categories" # === Taxonomy === # === Pagination === -[More] +[more] other = "More" # === Pagination === +# === partials/header.html === +[switchTheme] +other = "Switch Theme" +# === partials/header.html === + # === partials/comments.html === [valineLang] other = "en" @@ -75,7 +80,7 @@ other = "Back" [home] other = "Home" -[readmore] +[readMore] other = "Read More" [day] diff --git a/i18n/zh.toml b/i18n/zh.toml index 6eba84b..d60b617 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -24,10 +24,15 @@ other = "分类" # === Taxonomy === # === Pagination === -[More] +[more] other = "更多" # === Pagination === +# === partials/header.html === +[switchTheme] +other = "切换主题" +# === partials/header.html === + # === partials/comments.html === [valineLang] other = "zh-cn" @@ -78,7 +83,7 @@ other = "返回" [home] other = "主页" -[readmore] +[readMore] other = "阅读全文" [day] diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index f6d8086..6a39c15 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -47,7 +47,7 @@ {{ end }}
- {{ T "readmore" }} + {{ T "readMore" }} {{ with .Params.tags }}
{{ range . }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 364e2aa..a0543f0 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -22,13 +22,13 @@ {{- if .Site.Params.gitalk.owner -}}
- {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.gitalk_css }} + {{ if .Site.Params.cdn.gitalk_css }} {{ .Site.Params.cdn.gitalk_css | safeHTML }} {{ else }} {{- $res := resources.Get "css/lib/gitalk/gitalk.css" | resources.Minify -}} {{ end }} - {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.gitalk_js }} + {{ if .Site.Params.cdn.gitalk_js }} {{ .Site.Params.cdn.gitalk_js | safeHTML }} {{ else }} {{- $res := resources.Get "js/lib/gitalk/gitalk.min.js" | resources.Minify -}} @@ -53,7 +53,7 @@ {{- if .Site.Params.valine.enable -}}
- {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.valine_js }} + {{ if .Site.Params.cdn.valine_js }} {{ .Site.Params.cdn.valine_js | safeHTML }} {{ else }} {{- $res := resources.Get "js/lib/valine/Valine.min.js" | resources.Minify -}} @@ -79,16 +79,16 @@ {{- if .Site.Params.facebook.enable -}}
- -
{{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 08575cf..0a7c404 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,12 +8,13 @@ {{ range .Site.Menus.main }} {{ .Name | safeHTML }} {{ end }} - +
+ \ No newline at end of file diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index cd58939..82111bd 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -29,7 +29,7 @@ {{ end }} {{ if gt (len $pages) 5 }} - {{ T "More" }} >> + {{ T "more" }} >> {{ end }}