From e33a9a4b6822063712d4cc9080820a70bf0d5054 Mon Sep 17 00:00:00 2001 From: HSoeren Date: Tue, 2 Jun 2020 12:27:18 +0200 Subject: [PATCH 01/17] i18n translation for german updated Some mistranslations and capitalization corrected. I'd be happy if it were to be adopted. --- i18n/de.toml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/i18n/de.toml b/i18n/de.toml index 1c731d1..4781eb4 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -4,7 +4,7 @@ # === baseof == [backToTop] -other = "nach oben" +other = "Nach oben" [viewComments] other = "Kommentare anzeigen" @@ -42,12 +42,12 @@ other = "Mehr" other = "Sprache wählen" [switchTheme] -other = "Thema wechseln" +other = "Darstellung ändern" # === partials/header.html === # === partials/footer.html === [poweredBySome] -other = "Ermöglicht durch {{ .Hugo }} | Thema - {{ .Theme }}" +other = "Realisiert durch {{ .Hugo }} | Thema - {{ .Theme }}" # === partials/footer.html === # === partials/comment.html === @@ -106,21 +106,21 @@ other = "Teilen auf" other = "Inhalt" [publishedOnDate] -other = "veröffentlicht auf {{ .Date }}" +other = "veröffentlicht an {{ .Date }}" [includedInCategories] other = "enthalten in {{ .Categories }}" [wordCount] -one = "Ein wort" -other = "{{ .Count }} wörter" +one = "Ein Wort" +other = "{{ .Count }} Wörter" [readingTime] -one = "Eine minute" -other = "{{ .Count }} minuten" +one = "Eine Minute" +other = "{{ .Count }} Minuten" [views] -other = "aufrufe" +other = "Aufrufe" [author] other = "Autor" @@ -154,13 +154,13 @@ other = "Leider konnte die von Ihnen angeforderte Seite nicht aufgerufen werden. other = "Notiz" [abstract] -other = "Ausblick" +other = "Kurzfassung" [info] other = "Info" [tip] -other = "Tip" +other = "Tipp" [success] other = "Erfolg" @@ -175,7 +175,7 @@ other = "Warnung" other = "Fehler" [danger] -other = "Gefahr" +other = "Vorsicht" [bug] other = "Bug" From 37e0e4afe188e962a3a5d8f50451fb65cdf297c1 Mon Sep 17 00:00:00 2001 From: prajwal yashasvi Date: Sun, 7 Jun 2020 19:27:32 +0530 Subject: [PATCH 02/17] fix stackoverflow icon codepen bug #400 --- assets/data/social.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/data/social.yml b/assets/data/social.yml index c2cc2b6..5fb4665 100644 --- a/assets/data/social.yml +++ b/assets/data/social.yml @@ -156,7 +156,7 @@ stackoverflow: Prefix: https://stackoverflow.com/users/ Title: Stack Overflow Icon: - Class: fab fa-codepen fa-fw + Class: fab fa-stack-overflow fa-fw # 021: 微博 weibo: From 38980c040c4cad600be08db880101d72141feed9 Mon Sep 17 00:00:00 2001 From: anbuchelva Date: Sun, 12 Jul 2020 18:39:28 +0530 Subject: [PATCH 03/17] fix: wrap date in posts page --- assets/css/_partial/_archive/_terms.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/_partial/_archive/_terms.scss b/assets/css/_partial/_archive/_terms.scss index 1f63a47..aed6bff 100644 --- a/assets/css/_partial/_archive/_terms.scss +++ b/assets/css/_partial/_archive/_terms.scss @@ -68,7 +68,7 @@ } .archive-item-date { - width: 4em; + width: 6em; text-align: right; color: $global-font-secondary-color; From c069c4d2e025f09e96633c1007202b5e7d7874e3 Mon Sep 17 00:00:00 2001 From: Khusika Dhamar Gusti Date: Sun, 21 Jun 2020 15:23:28 +0700 Subject: [PATCH 04/17] fix(header): Use search-dropdown if search is enabled Signed-off-by: Khusika Dhamar Gusti --- layouts/partials/header.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index de3f955..8c0821b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -175,9 +175,11 @@ +{{- if .Site.Params.search.enable -}}
+{{- end -}} From f3d980c58553f9537fd97dbc9173b3c49bc1b2ce Mon Sep 17 00:00:00 2001 From: LeiHao Date: Wed, 19 Aug 2020 17:05:10 +0800 Subject: [PATCH 05/17] Add Traditional Chinese in i18n --- .../theme-documentation-basics/index.en.md | 1 + .../theme-documentation-basics/index.fr.md | 1 + .../theme-documentation-basics/index.zh-cn.md | 1 + i18n/zh-TW.toml | 200 ++++++++++++++++++ 4 files changed, 203 insertions(+) create mode 100644 i18n/zh-TW.toml diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 5a0cd13..ca73cd2 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -836,6 +836,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s |:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| | English | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | | Simplified Chinese | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| Traditional Chinese | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | French | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Polish | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | | Brazilian Portuguese | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | diff --git a/exampleSite/content/posts/theme-documentation-basics/index.fr.md b/exampleSite/content/posts/theme-documentation-basics/index.fr.md index 9ec5107..686aac9 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.fr.md @@ -841,6 +841,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s |:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| | English | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | | Simplified Chinese | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| Traditional Chinese | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | French | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Polish | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | | Brazilian Portuguese | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index 884e367..f7083f6 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -840,6 +840,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac |:---- |:----:|:----:|:----:|:----:| | 英语 | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | | 简体中文 | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| 繁體中文 | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 法语 | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 波兰语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | | 巴西葡萄牙语 | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml new file mode 100644 index 0000000..05a25e5 --- /dev/null +++ b/i18n/zh-TW.toml @@ -0,0 +1,200 @@ +# Translations for Simplified Chinese +# 簡體中文的翻譯 +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "回到頂部" + +[viewComments] +other = "查看評論" +# === baseof == + +# === Post === +[posts] +other = "文章" +# === Post === + +# === Taxonomy === +[allSome] +other = "所有{{ .Some }}" + +[tag] +other = "標籤" + +[tags] +other = "標籤" + +[category] +other = "分類" + +[categories] +other = "分類" +# === Taxonomy === + +# === Pagination === +[more] +other = "更多" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "選擇語言" + +[switchTheme] +other = "切換主題" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "由 {{ .Hugo }} 強力驅動 | 主題 - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "zh-tw" + +[valinePlaceholder] +other = "你的評論 ..." + +[facebookLanguageCode] +other = "zh_TW" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "搜索" + +[searchPlaceholder] +other = "搜索文章標題或內容..." + +[clear] +other = "清空" + +[cancel] +other = "取消" + +[noResultsFound] +other = "沒有找到結果" + +[lunrLanguageCode] +other = "zh" + +[lunrLanguageLib] +other = "lib/lunr/lunr.zh.js" + +[lunrSegmentitLib] +other = "lib/lunr/lunr.segmentit.js" + +[copyToClipboard] +other = "複製到剪貼板" + +[cookieconsentMessage] +other = "本網站使用 Cookies 來改善您的瀏覽體驗." + +[cookieconsentDismiss] +other = "同意" + +[cookieconsentLink] +other = "了解更多" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "分享到" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "目錄" + +[publishedOnDate] +other = "發佈於 {{ .Date }}" + +[includedInCategories] +other = "收錄於 {{ .Categories }}" + +[wordCount] +other = "約 {{ .Count }} 字" + +[readingTime] +other = "預計閱讀 {{ .Count }} 分鐘" + +[views] +other = "次閱讀" + +[author] +other = "作者" + +[updatedOnDate] +other = "更新於 {{ .Date }}" + +[readMarkdown] +other = "閱讀原始文檔" + +[back] +other = "返回" + +[home] +other = "主頁" + +[readMore] +other = "閱讀全文" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "頁面沒找到" + +[pageNotFoundText] +other = "抱歉,您要查找的頁面不存在。" +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "注意" + +[abstract] +other = "摘要" + +[info] +other = "信息" + +[tip] +other = "技巧" + +[success] +other = "成功" + +[question] +other = "問題" + +[warning] +other = "警告" + +[failure] +other = "失敗" + +[danger] +other = "危險" + +[bug] +other = "Bug" + +[example] +other = "示例" + +[quote] +other = "引用" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "新增" + +[changed] +other = "更改" + +[deleted] +other = "刪除" +# === shortcodes/version.html === From 3249f108da9f22768f1a3762530def9ce3f73908 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Mon, 14 Sep 2020 20:14:41 +0300 Subject: [PATCH 06/17] fix(function): error with newer Hugo versions --- layouts/partials/function/content.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/function/content.html b/layouts/partials/function/content.html index f1d7ce8..a3bef1e 100644 --- a/layouts/partials/function/content.html +++ b/layouts/partials/function/content.html @@ -1,5 +1,7 @@ {{- $content := .Content -}} +{{- if ne "" $content -}} + {{- if .Ruby -}} {{- $content = partial "function/ruby.html" $content -}} {{- end -}} @@ -16,4 +18,6 @@ {{- $content = partial "function/escape.html" $content -}} +{{- end -}} + {{- return $content -}} From 8073888dd899a9ee120212d49015eaaa16cc7fc6 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 17 Sep 2020 12:01:48 -0500 Subject: [PATCH 07/17] `.params` -> `$params` This was causing the authors of all RSS items to render as "Author". --- layouts/partials/rss/item.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/rss/item.html b/layouts/partials/rss/item.html index 28256b4..7af54d2 100644 --- a/layouts/partials/rss/item.html +++ b/layouts/partials/rss/item.html @@ -10,7 +10,7 @@ {{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}} - {{- .params.author | default (T "author") -}} + {{- $params.author | default (T "author") -}} {{- .Page.Permalink -}} @@ -33,4 +33,4 @@ {{- $content | replaceRE `]*>.*` "" | replaceRE `]*( /)?>` "" | safeHTML -}} {{- "]]>" | safeHTML -}} - \ No newline at end of file + From 8eb46b216d0ac5597fc999821a074c097bea6e20 Mon Sep 17 00:00:00 2001 From: Khusika Dhamar Gusti Date: Wed, 22 Jul 2020 22:47:44 +0700 Subject: [PATCH 08/17] fix(footer): Guard post-info-license Show license information if it is mentioned in the markdown. Signed-off-by: Khusika Dhamar Gusti --- layouts/partials/single/footer.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index c5b682f..caf9edc 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -17,13 +17,13 @@ {{- end -}} + {{- with $params.license | string -}} + {{- end -}}