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; diff --git a/assets/css/_partial/_single/_code.scss b/assets/css/_partial/_single/_code.scss index 5507a2d..ad97453 100644 --- a/assets/css/_partial/_single/_code.scss +++ b/assets/css/_partial/_single/_code.scss @@ -49,7 +49,6 @@ code, pre, .highlight table, .highlight tr, .highlight td { margin: 0; padding: 0; border: none !important; - white-space: nowrap; } } } 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: diff --git a/exampleSite/.hugo_build.lock b/exampleSite/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/exampleSite/content/posts/basic-markdown-syntax/index.en.md b/exampleSite/content/posts/basic-markdown-syntax/index.en.md index cdbaf8f..db1300a 100644 --- a/exampleSite/content/posts/basic-markdown-syntax/index.en.md +++ b/exampleSite/content/posts/basic-markdown-syntax/index.en.md @@ -24,7 +24,7 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c {{< admonition >}} This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown). -If you want to know about the extented Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax). +If you want to know about the extended Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax). {{< /admonition >}} Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages. diff --git a/exampleSite/content/posts/basic-markdown-syntax/index.fr.md b/exampleSite/content/posts/basic-markdown-syntax/index.fr.md index 0d30743..2c07869 100644 --- a/exampleSite/content/posts/basic-markdown-syntax/index.fr.md +++ b/exampleSite/content/posts/basic-markdown-syntax/index.fr.md @@ -29,7 +29,7 @@ Welcome to take the time to propose a translation by [:(fas fa-code-branch fa-fw {{< admonition >}} This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown). -If you want to know about the extented Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax). +If you want to know about the extended Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax). {{< /admonition >}} Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages. 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/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md index 9ddabed..5802e9a 100644 --- a/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md +++ b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md @@ -111,15 +111,11 @@ The rendered output looks like this: [Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram) -Example `instagram` input: - -```markdown -{{}} -``` - -The rendered output looks like this: - -{{< instagram BWNjjyYFxVx hidecaption >}} +{{< admonition question "Instagram’s API was deprecated since October 24th, 2020" >}} +The instagram-shortcode refers an endpoint of Instagram’s API, that’s deprecated since October 24th, 2020. +Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used. +For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879). +{{< /admonition >}} ## 5 param @@ -146,12 +142,12 @@ The rendered output looks like this: Example `tweet` input: ```markdown -{{}} +{{}} ``` The rendered output looks like this: -{{< tweet 877500564405444608 >}} +{{< tweet 917359331535966209 >}} ## 8 vimeo diff --git a/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md index fdb0bb1..e6d3d20 100644 --- a/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md +++ b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.fr.md @@ -116,15 +116,11 @@ The rendered output looks like this: [Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram) -Example `instagram` input: - -```markdown -{{}} -``` - -The rendered output looks like this: - -{{< instagram BWNjjyYFxVx hidecaption >}} +{{< admonition question "Instagram’s API was deprecated since October 24th, 2020" >}} +The instagram-shortcode refers an endpoint of Instagram’s API, that’s deprecated since October 24th, 2020. +Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used. +For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879). +{{< /admonition >}} ## 5 param @@ -151,12 +147,12 @@ The rendered output looks like this: Example `tweet` input: ```markdown -{{}} +{{}} ``` The rendered output looks like this: -{{< tweet 877500564405444608 >}} +{{< tweet 917359331535966209 >}} ## 8 vimeo diff --git a/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md index 66d275a..646e672 100644 --- a/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md @@ -112,15 +112,11 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见 [`instagram` 的文档](https://gohugo.io/content-management/shortcodes#instagram) -一个 `instagram` 示例: - -```markdown -{{}} -``` - -呈现的输出效果如下: - -{{< instagram BWNjjyYFxVx hidecaption >}} +{{< admonition question "Instagram’s API was deprecated since October 24th, 2020" >}} +The instagram-shortcode refers an endpoint of Instagram’s API, that’s deprecated since October 24th, 2020. +Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used. +For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879). +{{< /admonition >}} ## 5 param @@ -147,12 +143,12 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见 一个 `tweet` 示例: ```markdown -{{}} +{{}} ``` 呈现的输出效果如下: -{{< tweet 877500564405444608 >}} +{{< tweet 917359331535966209 >}} ## 8 vimeo 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" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index 27cbb03..6af5925 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -17,7 +17,7 @@ other = "Posts" # === Taxonomy === [allSome] -other = "Todos {{ .Some }}" +other = "{{ .Some }}" [tag] other = "Tag" @@ -47,7 +47,7 @@ other = "Trocar tema" # === partials/footer.html === [poweredBySome] -other = "Movido a {{ .Hugo }} | Tema - {{ .Theme }}" +other = "Possibilitado por {{ .Hugo }} | Tema - {{ .Theme }}" # === partials/footer.html === # === partials/comment.html === @@ -197,4 +197,3 @@ other = "ALTERADO" [deleted] other = "EXCLUÍDO" # === shortcodes/version.html === - 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 === 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 -}} 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 -}} 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 + 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 -}}