diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 2f7337a..ecd278b 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -18,7 +18,7 @@ hiResOpt = "2500x webp Lanczos q75" # unified alt text for all images in the page unifiedAlt = '' -# Site verification code for Google/Bing/Yandex/Pinterest/Baidu +# site verification code for Google/Bing/Yandex/Pinterest/Baidu [verification] google = "" bing = "" @@ -28,7 +28,7 @@ baidu = "" so = "" sogou = "" -# Analytics config +# analytics config [analytics] enable = true # Google Analytics @@ -66,3 +66,12 @@ No_cookie = true Do_not_track = true # token(optional), more info on https://splitbee.io/docs/embed-the-script data_token = "" + +# labels +[labels] +next = "next" +prev = "prev" +close = "close" +threshold = "Threshold" +error = "page not found" +other = "loading..." diff --git a/i18n/de.toml b/i18n/de.toml deleted file mode 100644 index a5f35de..0000000 --- a/i18n/de.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "nächste" -[prev] -other = "vorher" -[close] -other = "schließen" -[threshold] -other = "schwelle" -[404] -other = "seite nicht gefunden" -[loading] -other = "lade..." diff --git a/i18n/en.toml b/i18n/en.toml deleted file mode 100644 index 9e9b1c2..0000000 --- a/i18n/en.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "next" -[prev] -other = "prev" -[close] -other = "close" -[threshold] -other = "threshold" -[404] -other = "page not found" -[loading] -other = "loading..." diff --git a/i18n/es.toml b/i18n/es.toml deleted file mode 100644 index c4e0397..0000000 --- a/i18n/es.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "siguiente" -[prev] -other = "previo" -[close] -other = "cerrar" -[threshold] -other = "umbral" -[404] -other = "página no encontrada" -[loading] -other = "cargando..." diff --git a/i18n/fr.toml b/i18n/fr.toml deleted file mode 100644 index ce0a65d..0000000 --- a/i18n/fr.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "suivant" -[prev] -other = "précédent" -[close] -other = "fermer" -[threshold] -other = "seuil" -[404] -other = "page non trouvée" -[loading] -other = "chargement..." diff --git a/i18n/it.toml b/i18n/it.toml deleted file mode 100644 index 32a2272..0000000 --- a/i18n/it.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "prossimo" -[prev] -other = "precedente" -[close] -other = "chiudi" -[threshold] -other = "soglia" -[404] -other = "pagina non trovata" -[loading] -other = "caricamento..." diff --git a/i18n/ja.toml b/i18n/ja.toml deleted file mode 100644 index 290cdb9..0000000 --- a/i18n/ja.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "進む" -[prev] -other = "後退" -[close] -other = "閉じる" -[threshold] -other = "しきい値" -[404] -other = "ページが見つかりません" -[loading] -other = "読み込み中..." diff --git a/i18n/ko.toml b/i18n/ko.toml deleted file mode 100644 index 4b15827..0000000 --- a/i18n/ko.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "전진" -[prev] -other = "물러나세요" -[close] -other = "닫기" -[threshold] -other = "임계값" -[404] -other = "페이지를 찾을 수 없습니다" -[loading] -other = "로딩중..." diff --git a/i18n/ta.toml b/i18n/ta.toml deleted file mode 100644 index 4b9236f..0000000 --- a/i18n/ta.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "அடுத்தது" -[prev] -other = "முந்தையது" -[close] -other = "வெளியே செல்ல" -[threshold] -other = "எல்லை" -[404] -other = "பக்கம் காணப்படவில்லை" -[loading] -other = "பதிவேற்றம் நடக்கிறது..." diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml deleted file mode 100644 index 78da8c3..0000000 --- a/i18n/zh-cn.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "前进" -[prev] -other = "后退" -[close] -other = "关闭" -[threshold] -other = "阈值" -[404] -other = "页面不存在" -[loading] -other = "加载中..." diff --git a/i18n/zh-hk.toml b/i18n/zh-hk.toml deleted file mode 100644 index 771c3cb..0000000 --- a/i18n/zh-hk.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "前進" -[prev] -other = "後退" -[close] -other = "關閉" -[threshold] -other = "閾值" -[404] -other = "找不到頁面" -[loading] -other = "載入中..." diff --git a/i18n/zh-mo.toml b/i18n/zh-mo.toml deleted file mode 100644 index 771c3cb..0000000 --- a/i18n/zh-mo.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "前進" -[prev] -other = "後退" -[close] -other = "關閉" -[threshold] -other = "閾值" -[404] -other = "找不到頁面" -[loading] -other = "載入中..." diff --git a/i18n/zh-sg.toml b/i18n/zh-sg.toml deleted file mode 100644 index 78da8c3..0000000 --- a/i18n/zh-sg.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "前进" -[prev] -other = "后退" -[close] -other = "关闭" -[threshold] -other = "阈值" -[404] -other = "页面不存在" -[loading] -other = "加载中..." diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml deleted file mode 100644 index 771c3cb..0000000 --- a/i18n/zh-tw.toml +++ /dev/null @@ -1,12 +0,0 @@ -[next] -other = "前進" -[prev] -other = "後退" -[close] -other = "關閉" -[threshold] -other = "閾值" -[404] -other = "找不到頁面" -[loading] -other = "載入中..." diff --git a/layouts/404.html b/layouts/404.html index 2c7ac83..0af202b 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,9 +2,15 @@
{{- partial "nav.html" . -}}
-

404 {{- i18n 404 -}} ⛝

-

404 {{- i18n 404 -}} ⛝

-

404 {{- i18n 404 -}} ⛝

+

+ ⛝ 404 {{- site.Params.labels.error -}} ⛝ +

+

+ ⛝ 404 {{- site.Params.labels.error -}} ⛝ +

+

+ ⛝ 404 {{- site.Params.labels.error -}} ⛝ +

{{- end -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4b8b251..c0f64ff 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,10 @@ {{- define "main" -}}
{{- with .Content -}}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3722826..abf2934 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -37,7 +37,7 @@ {{- with partial "function/getImageSlice.html" . -}} {{- $length = len . -}} {{- end -}} - {{- i18n "threshold" | strings.FirstUpper -}}: + {{- site.Params.labels.threshold -}}: