Merge branch 'master' into schema-fix

This commit is contained in:
Dillon 2022-05-03 16:16:33 +08:00 committed by GitHub
commit b5bea268ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 6324 additions and 3213 deletions

View file

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

View file

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

View file

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

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 >}}
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.

View file

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

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): |
| 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): |

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): |
| 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): |

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): |
| 简体中文 | `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): |

View file

@ -111,15 +111,11 @@ The rendered output looks like this:
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
{{< 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.
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
{{</* tweet 877500564405444608 */>}}
{{</* tweet 917359331535966209 */>}}
```
The rendered output looks like this:
{{< tweet 877500564405444608 >}}
{{< tweet 917359331535966209 >}}
## 8 vimeo

View file

@ -116,15 +116,11 @@ The rendered output looks like this:
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
{{< 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.
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
{{</* tweet 877500564405444608 */>}}
{{</* tweet 917359331535966209 */>}}
```
The rendered output looks like this:
{{< tweet 877500564405444608 >}}
{{< tweet 917359331535966209 >}}
## 8 vimeo

View file

@ -112,15 +112,11 @@ Hugo 附带了一组预定义的 shortcodes, 它们实现了一些非常常见
[`instagram` 的文档](https://gohugo.io/content-management/shortcodes#instagram)
一个 `instagram` 示例:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
呈现的输出效果如下:
{{< instagram BWNjjyYFxVx hidecaption >}}
{{< 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.
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 */>}}
```
呈现的输出效果如下:
{{< tweet 877500564405444608 >}}
{{< tweet 917359331535966209 >}}
## 8 vimeo

View file

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

View file

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

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 -}}
{{- 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 -}}

View file

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

View file

@ -10,7 +10,7 @@
{{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
</pubDate>
<author>
{{- .params.author | default (T "author") -}}
{{- $params.author | default (T "author") -}}
</author>
<guid>
{{- .Page.Permalink -}}
@ -33,4 +33,4 @@
{{- $content | replaceRE `<figure[^>]*>.*</figure>` "" | replaceRE `<img[^>]*( /)?>` "" | safeHTML -}}
{{- "]]>" | safeHTML -}}
</description>
</item>
</item>

View file

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

9214
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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