Merge branch 'master' into schema-fix

This commit is contained in:
Dillon
2022-05-03 16:16:33 +08:00
committed by GitHub
21 changed files with 6324 additions and 3213 deletions

View File

@@ -68,7 +68,7 @@
} }
.archive-item-date { .archive-item-date {
width: 4em; width: 6em;
text-align: right; text-align: right;
color: $global-font-secondary-color; color: $global-font-secondary-color;

View File

@@ -49,7 +49,6 @@ code, pre, .highlight table, .highlight tr, .highlight td {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none !important; border: none !important;
white-space: nowrap;
} }
} }
} }

View File

@@ -156,7 +156,7 @@ stackoverflow:
Prefix: https://stackoverflow.com/users/ Prefix: https://stackoverflow.com/users/
Title: Stack Overflow Title: Stack Overflow
Icon: Icon:
Class: fab fa-codepen fa-fw Class: fab fa-stack-overflow fa-fw
# 021: 微博 # 021: 微博
weibo: weibo:

View File

View File

@@ -24,7 +24,7 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c
{{< admonition >}} {{< admonition >}}
This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown). 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 >}} {{< /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. 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.

View File

@@ -29,7 +29,7 @@ Welcome to take the time to propose a translation by [:(fas fa-code-branch fa-fw
{{< admonition >}} {{< admonition >}}
This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown). 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 >}} {{< /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. 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.

View File

@@ -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): | | 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): | | 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): | | 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): | | 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): | | Brazilian Portuguese | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |

View File

@@ -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): | | 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): | | 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): | | 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): | | 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): | | Brazilian Portuguese | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |

View File

@@ -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): | | 英语 | `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-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): | | 法语 | `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): | | 波兰语 | `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): | | 巴西葡萄牙语 | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |

View File

@@ -111,15 +111,11 @@ The rendered output looks like this:
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram) [Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input: {{< admonition question "Instagrams API was deprecated since October 24th, 2020" >}}
The instagram-shortcode refers an endpoint of Instagrams API, thats deprecated since October 24th, 2020.
```markdown Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used.
{{</* instagram BWNjjyYFxVx hidecaption */>}} For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879).
``` {{< /admonition >}}
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
## 5 param ## 5 param
@@ -146,12 +142,12 @@ The rendered output looks like this:
Example `tweet` input: Example `tweet` input:
```markdown ```markdown
{{</* tweet 877500564405444608 */>}} {{</* tweet 917359331535966209 */>}}
``` ```
The rendered output looks like this: The rendered output looks like this:
{{< tweet 877500564405444608 >}} {{< tweet 917359331535966209 >}}
## 8 vimeo ## 8 vimeo

View File

@@ -116,15 +116,11 @@ The rendered output looks like this:
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram) [Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input: {{< admonition question "Instagrams API was deprecated since October 24th, 2020" >}}
The instagram-shortcode refers an endpoint of Instagrams API, thats deprecated since October 24th, 2020.
```markdown Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used.
{{</* instagram BWNjjyYFxVx hidecaption */>}} For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879).
``` {{< /admonition >}}
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
## 5 param ## 5 param
@@ -151,12 +147,12 @@ The rendered output looks like this:
Example `tweet` input: Example `tweet` input:
```markdown ```markdown
{{</* tweet 877500564405444608 */>}} {{</* tweet 917359331535966209 */>}}
``` ```
The rendered output looks like this: The rendered output looks like this:
{{< tweet 877500564405444608 >}} {{< tweet 917359331535966209 >}}
## 8 vimeo ## 8 vimeo

View File

@@ -112,15 +112,11 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
[`instagram` 的文档](https://gohugo.io/content-management/shortcodes#instagram) [`instagram` 的文档](https://gohugo.io/content-management/shortcodes#instagram)
一个 `instagram` 示例: {{< admonition question "Instagrams API was deprecated since October 24th, 2020" >}}
The instagram-shortcode refers an endpoint of Instagrams API, thats deprecated since October 24th, 2020.
```markdown Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used.
{{</* instagram BWNjjyYFxVx hidecaption */>}} For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879).
``` {{< /admonition >}}
呈现的输出效果如下:
{{< instagram BWNjjyYFxVx hidecaption >}}
## 5 param ## 5 param
@@ -147,12 +143,12 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
一个 `tweet` 示例: 一个 `tweet` 示例:
```markdown ```markdown
{{</* tweet 877500564405444608 */>}} {{</* tweet 917359331535966209 */>}}
``` ```
呈现的输出效果如下: 呈现的输出效果如下:
{{< tweet 877500564405444608 >}} {{< tweet 917359331535966209 >}}
## 8 vimeo ## 8 vimeo

View File

@@ -4,7 +4,7 @@
# === baseof == # === baseof ==
[backToTop] [backToTop]
other = "nach oben" other = "Nach oben"
[viewComments] [viewComments]
other = "Kommentare anzeigen" other = "Kommentare anzeigen"
@@ -42,12 +42,12 @@ other = "Mehr"
other = "Sprache wählen" other = "Sprache wählen"
[switchTheme] [switchTheme]
other = "Thema wechseln" other = "Darstellung ändern"
# === partials/header.html === # === partials/header.html ===
# === partials/footer.html === # === partials/footer.html ===
[poweredBySome] [poweredBySome]
other = "Ermöglicht durch {{ .Hugo }} | Thema - {{ .Theme }}" other = "Realisiert durch {{ .Hugo }} | Thema - {{ .Theme }}"
# === partials/footer.html === # === partials/footer.html ===
# === partials/comment.html === # === partials/comment.html ===
@@ -106,21 +106,21 @@ other = "Teilen auf"
other = "Inhalt" other = "Inhalt"
[publishedOnDate] [publishedOnDate]
other = "veröffentlicht auf {{ .Date }}" other = "veröffentlicht an {{ .Date }}"
[includedInCategories] [includedInCategories]
other = "enthalten in {{ .Categories }}" other = "enthalten in {{ .Categories }}"
[wordCount] [wordCount]
one = "Ein wort" one = "Ein Wort"
other = "{{ .Count }} wörter" other = "{{ .Count }} Wörter"
[readingTime] [readingTime]
one = "Eine minute" one = "Eine Minute"
other = "{{ .Count }} minuten" other = "{{ .Count }} Minuten"
[views] [views]
other = "aufrufe" other = "Aufrufe"
[author] [author]
other = "Autor" other = "Autor"
@@ -154,13 +154,13 @@ other = "Leider konnte die von Ihnen angeforderte Seite nicht aufgerufen werden.
other = "Notiz" other = "Notiz"
[abstract] [abstract]
other = "Ausblick" other = "Kurzfassung"
[info] [info]
other = "Info" other = "Info"
[tip] [tip]
other = "Tip" other = "Tipp"
[success] [success]
other = "Erfolg" other = "Erfolg"
@@ -175,7 +175,7 @@ other = "Warnung"
other = "Fehler" other = "Fehler"
[danger] [danger]
other = "Gefahr" other = "Vorsicht"
[bug] [bug]
other = "Bug" other = "Bug"

View File

@@ -17,7 +17,7 @@ other = "Posts"
# === Taxonomy === # === Taxonomy ===
[allSome] [allSome]
other = "Todos {{ .Some }}" other = "{{ .Some }}"
[tag] [tag]
other = "Tag" other = "Tag"
@@ -47,7 +47,7 @@ other = "Trocar tema"
# === partials/footer.html === # === partials/footer.html ===
[poweredBySome] [poweredBySome]
other = "Movido a {{ .Hugo }} | Tema - {{ .Theme }}" other = "Possibilitado por {{ .Hugo }} | Tema - {{ .Theme }}"
# === partials/footer.html === # === partials/footer.html ===
# === partials/comment.html === # === partials/comment.html ===
@@ -197,4 +197,3 @@ other = "ALTERADO"
[deleted] [deleted]
other = "EXCLUÍDO" other = "EXCLUÍDO"
# === shortcodes/version.html === # === shortcodes/version.html ===

200
i18n/zh-TW.toml Normal file
View File

@@ -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 ===

View File

@@ -1,5 +1,7 @@
{{- $content := .Content -}} {{- $content := .Content -}}
{{- if ne "" $content -}}
{{- if .Ruby -}} {{- if .Ruby -}}
{{- $content = partial "function/ruby.html" $content -}} {{- $content = partial "function/ruby.html" $content -}}
{{- end -}} {{- end -}}
@@ -16,4 +18,6 @@
{{- $content = partial "function/escape.html" $content -}} {{- $content = partial "function/escape.html" $content -}}
{{- end -}}
{{- return $content -}} {{- return $content -}}

View File

@@ -175,9 +175,11 @@
</div> </div>
</div> </div>
</header> </header>
{{- if .Site.Params.search.enable -}}
<div class="search-dropdown desktop"> <div class="search-dropdown desktop">
<div id="search-dropdown-desktop"></div> <div id="search-dropdown-desktop"></div>
</div> </div>
<div class="search-dropdown mobile"> <div class="search-dropdown mobile">
<div id="search-dropdown-mobile"></div> <div id="search-dropdown-mobile"></div>
</div> </div>
{{- end -}}

View File

@@ -10,7 +10,7 @@
{{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}} {{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
</pubDate> </pubDate>
<author> <author>
{{- .params.author | default (T "author") -}} {{- $params.author | default (T "author") -}}
</author> </author>
<guid> <guid>
{{- .Page.Permalink -}} {{- .Page.Permalink -}}

View File

@@ -17,13 +17,13 @@
{{- end -}} {{- end -}}
</span> </span>
</div> </div>
{{- with $params.license | string -}}
<div class="post-info-license"> <div class="post-info-license">
{{- with $params.license | string -}} <span>
<span> {{- . | safeHTML -}}
{{- . | safeHTML -}} </span>
</span>
{{- end -}}
</div> </div>
{{- end -}}
</div> </div>
<div class="post-info-line"> <div class="post-info-line">
<div class="post-info-md"> <div class="post-info-md">

9212
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,8 +13,9 @@
"browserify": "^16.5.0", "browserify": "^16.5.0",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"husky": "^4.2.3", "husky": "^4.2.3",
"minimist": "^1.2.5", "minimist": "^1.2.6",
"segmentit": "^2.0.3" "segmentit": "^2.0.3",
"lodash": "^4.17.21"
}, },
"scripts": { "scripts": {
"preinstall": "npx npm-force-resolutions", "preinstall": "npx npm-force-resolutions",
@@ -26,9 +27,6 @@
"check": "htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external", "check": "htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external",
"copy": "rm -rf resources && cp -rf exampleSite/resources resources" "copy": "rm -rf resources && cp -rf exampleSite/resources resources"
}, },
"resolutions": {
"minimist": "^1.2.5"
},
"husky": { "husky": {
"hooks": { "hooks": {
"pre-commit": "npm run build && npm run copy && git add resources assets/js" "pre-commit": "npm run build && npm run copy && git add resources assets/js"