From d30eab12edbd6643615def9f5d766b64e5f76369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=B6=E7=88=B6?= Date: Fri, 11 Sep 2020 20:57:56 +0800 Subject: [PATCH 1/8] added zh-cn, zh-tw, ja & corrected icon link --- data/langFlags.yaml | 8 +++++--- i18n/ja.toml | 39 +++++++++++++++++++++++++++++++++++++++ i18n/zh-cn.toml | 39 +++++++++++++++++++++++++++++++++++++++ i18n/zh-tw.toml | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+), 3 deletions(-) create mode 100644 i18n/ja.toml create mode 100644 i18n/zh-cn.toml create mode 100644 i18n/zh-tw.toml diff --git a/data/langFlags.yaml b/data/langFlags.yaml index 2464fed..6068475 100644 --- a/data/langFlags.yaml +++ b/data/langFlags.yaml @@ -2,13 +2,15 @@ de: de en: gb es: es fr: fr +gl: es-ga hi: in it: it +ja: jp ml: in nl: nl pt-br: br ru: ru tr: tr -ml: in -gl: es-ga -zh-hk: hong_kong +zh-cn: cn +zh-hk: hk +zh-tw: tw diff --git a/i18n/ja.toml b/i18n/ja.toml new file mode 100644 index 0000000..7350c23 --- /dev/null +++ b/i18n/ja.toml @@ -0,0 +1,39 @@ +# Translations for Japanese +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# Generic +# +[translations] +other = "翻訳" + +[postAvailable] +other = "他の言語" + + +# 404.html +# +[archives] +other = "アーカイブ" + +[home] +other = "ホームページ" + +[notFound] +other = "あっ、ページが見つかりません……" + +# Please add hasCJKLanguage = true under [languages.ja] for the below to behave correctly +# posts/single.html +# +[readingTime] +one = "一分" +other = "{{ .Count }}分" + +[tableOfContents] +other = "目次" + +[wordCount] +one = "一文字" +other = "{{ .Count }}文字" + +[lastModified] +other = "最終更新" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml new file mode 100644 index 0000000..7ed72a0 --- /dev/null +++ b/i18n/zh-cn.toml @@ -0,0 +1,39 @@ +# Translations for Chinese (China) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# Generic +# +[translations] +other = "译文" + +[postAvailable] +other = "其他语言" + + +# 404.html +# +[archives] +other = "档案" + +[home] +other = "主页" + +[notFound] +other = "噢,找不到页面……" + +# Please add hasCJKLanguage = true under [languages.zh-cn] for the below to behave correctly +# posts/single.html +# +[readingTime] +one = "一分钟" +other = "{{ .Count }}分钟" + +[tableOfContents] +other = "目录" + +[wordCount] +one = "一字" +other = "{{ .Count }}字" + +[lastModified] +other = "最后修改" diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml new file mode 100644 index 0000000..4a83bac --- /dev/null +++ b/i18n/zh-tw.toml @@ -0,0 +1,39 @@ +# Translations for Chinese (Taiwan) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# Generic +# +[translations] +other = "譯文" + +[postAvailable] +other = "其他語言" + + +# 404.html +# +[archives] +other = "檔案" + +[home] +other = "主頁" + +[notFound] +other = "噢,找不到頁面……" + +# Please add hasCJKLanguage = true under [languages.zh-tw] for the below to behave correctly +# posts/single.html +# +[readingTime] +one = "一分鐘" +other = "{{ .Count }}分鐘" + +[tableOfContents] +other = "目錄" + +[wordCount] +one = "一字" +other = "{{ .Count }}字" + +[lastModified] +other = "最後修改" From d7476ff1f1a43b0d00063303db24fa2d6a95200a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=B6=E7=88=B6?= Date: Fri, 11 Sep 2020 21:07:10 +0800 Subject: [PATCH 2/8] Added instructions to setup word count for CJK languages in config.toml --- i18n/zh-hk.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/zh-hk.toml b/i18n/zh-hk.toml index 4a2106a..4f52ffc 100644 --- a/i18n/zh-hk.toml +++ b/i18n/zh-hk.toml @@ -21,7 +21,7 @@ other = "主頁" [notFound] other = "哎呀,揾唔到添……" - +# Please add hasCJKLanguage = true under [languages.zh-hk] for the below to behave correctly # posts/single.html # [readingTime] From fc3fc3dd1ceaebd6e3f186b2f740066578bef968 Mon Sep 17 00:00:00 2001 From: Nicky van Urk Date: Mon, 14 Sep 2020 13:06:57 +0200 Subject: [PATCH 3/8] Fix hamburger icon flicker --- assets/scss/_menu.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/scss/_menu.scss b/assets/scss/_menu.scss index 6833a77..01ec903 100644 --- a/assets/scss/_menu.scss +++ b/assets/scss/_menu.scss @@ -49,6 +49,11 @@ fill: currentColor; margin-left: 10px; cursor: pointer; + display: none; + + @media #{$media-size-phone} { + display: block; + } } a { From ce7c8ed55aa620050c22e6f29741a854541f11d3 Mon Sep 17 00:00:00 2001 From: 8F3E <39588555+8F3E@users.noreply.github.com> Date: Sun, 20 Sep 2020 21:53:11 +0100 Subject: [PATCH 4/8] Fix 215 and prevent extra bullet in footer if RSS is disabled --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b8856db..85a1f91 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,7 +8,7 @@ {{ if .Site.Copyright }} {{ .Site.Copyright| safeHTML }} {{ end }} - {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} {{ end }} + {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}{{ end }}