diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..4bd22f3 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,77 @@ +# Lang: English (generic) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# BGN: Date and Time Format + [Datetime_format] + other = "2006-01-02" +# END: Date and Time Format + +# BGN: Base + [home] + other = "Home" + + [categories] + one = "Category" + other = "Categories" + [tags] + one = "Tag" + other = "Tags" + + [continueReading] + other = "Continue reading" + + [next] + other = "Next" + [previous] + other = "Previous" + + [toc] + other = "Table of Contents" +# END: Base + +# BGN: Theme + [ads] + other = "Ads" + + [Articles] + other = "articles" + [Articles_latest] + other = "Latest articles" + [Articles_related] + other = "See Also" + + [busuanzi] + other = "reads" + + [Feed_rss] + other = "RSS" + + [links] + other = "Links" + + [meta] + other = "Meta" + + [tagsNone] + other = "No tags" + + [Search] + other = "Search: " + [Search_keyword] + other = "Keyword" + [Search_results] + other = "results" +# END: Theme + +# BGN: Copyright + [Copyright_author] + other = "Author: " + [Copyright_link] + other = "Link: " + [Copyright_license] + other = "License: " + [Copyright_license_workUnder] + other = "This work is under a " + [Copyright_license_note] + other = "Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work." +# END: Copyright diff --git a/i18n/ja.toml b/i18n/ja.toml new file mode 100644 index 0000000..b03cc90 --- /dev/null +++ b/i18n/ja.toml @@ -0,0 +1,77 @@ +# Lang: Japanese +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# BGN: Date and Time Format + [Datetime_format] + other = "2006年1月2日" +# END: Date and Time Format + +# BGN: Base + [home] + other = "自宅" + + [categories] + one = "カテゴリ" + other = "カテゴリ" + [tags] + one = "タグ" + other = "タグ" + + [continueReading] + other = "詳細はこちら" + + [next] + other = "次へ" + [previous] + other = "前の" + + [toc] + other = "目次" +# END: Base + +# BGN: Theme + [ads] + other = "広告です" + + [Articles] + other = "記事です" + [Articles_latest] + other = "最新の記事です" + [Articles_related] + other = "関連記事です" + + [busuanzi] + other = "読みます。" + + [Feed_rss] + other = "RSSフィード" + + [links] + other = "リンク" + + [meta] + other = "メタ" + + [tagsNone] + other = "タグなし" + + [Search] + other = "検索" + [Search_keyword] + other = "キーワード" + [Search_results] + other = "検索結果" +# END: Theme + +# BGN: Copyright + [Copyright_author] + other = "作成者:" + [Copyright_link] + other = "リンク:" + [Copyright_license] + other = "ライセンス:" + [Copyright_license_workUnder] + other = "この作業は、次の条件の下にあります。" + [Copyright_license_note] + other = "本作業のデリバティブを適用または作成する場合は、上記のライセンスの要件を満たしてください。" +# END: Copyright diff --git a/i18n/ko.toml b/i18n/ko.toml new file mode 100644 index 0000000..b2e7add --- /dev/null +++ b/i18n/ko.toml @@ -0,0 +1,77 @@ +# Lang: Korean (South) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# BGN: Date and Time Format + [Datetime_format] + other = "2006년 01월 02일" +# END: Date and Time Format + +# BGN: Base + [home] + other = "집이에요" + + [categories] + one = "분류" + other = "분류" + [tags] + one = "태그입니다." + other = "태그입니다." + + [continueReading] + other = "더 읽기" + + [next] + other = "다음 분." + [previous] + other = "이전의" + + [toc] + other = "목차." +# END: Base + +# BGN: Theme + [ads] + other = "광고" + + [Articles] + other = "기사들" + [Articles_latest] + other = "최신 기사입니다." + [Articles_related] + other = "관련기사입니다" + + [busuanzi] + other = "읽습니다." + + [Feed_rss] + other = "RSS 피드" + + [links] + other = "링크입니다." + + [meta] + other = "메타" + + [tagsNone] + other = "태그 없음" + + [Search] + other = "서치" + [Search_keyword] + other = "핵심어" + [Search_results] + other = "결과." +# END: Theme + +# BGN: Copyright + [Copyright_author] + other = "작가: " + [Copyright_link] + other = "링크: " + [Copyright_license] + other = " 허가하다: " + [Copyright_license_workUnder] + other = "이 작업은 아래에 있습니다." + [Copyright_license_note] + other = "이 작업의 파생 모델을 수정하거나 작성할 때 앞서 언급한 라이센스의 요구 사항을 충족하십시오." +# END: Copyright diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml new file mode 100644 index 0000000..cdea7f8 --- /dev/null +++ b/i18n/zh-hans.toml @@ -0,0 +1,77 @@ +# Lang: Simplified Chinese (China) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# BGN: Date and Time Format + [Datetime_format] + other = "2006年1月2日" +# END: Date and Time Format + +# BGN: Base + [home] + other = "首页" + + [categories] + one = "分类" + other = "分类" + [tags] + one = "标签" + other = "标签" + + [continueReading] + other = "阅读全文" + + [next] + other = "下一页" + [previous] + other = "上一页" + + [toc] + other = "文章目录" +# END: Base + +# BGN: Theme + [ads] + other = "福利派送" + + [Articles] + other = "中的文章" + [Articles_latest] + other = "最近文章" + [Articles_related] + other = "相关文章" + + [busuanzi] + other = "阅读" + + [Feed_rss] + other = "文章 RSS" + + [links] + other = "友情链接" + + [meta] + other = "其它" + + [tagsNone] + other = "没有标签" + + [Search] + other = "搜索" + [Search_keyword] + other = "哈哈" + [Search_results] + other = "的结果" +# END: Theme + +# BGN: Copyright + [Copyright_author] + other = "原文作者:" + [Copyright_link] + other = "原文链接:" + [Copyright_license] + other = "版权声明:" + [Copyright_license_workUnder] + other = "本作品采用" + [Copyright_license_note] + other = "进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。" +# END: Copyright diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml new file mode 100644 index 0000000..fd68295 --- /dev/null +++ b/i18n/zh-hant.toml @@ -0,0 +1,77 @@ +# Lang: Simplified Chinese (China) +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# BGN: Date and Time Format + [Datetime_format] + other = "2006年1月2日" +# END: Date and Time Format + +# BGN: Base + [home] + other = "首頁" + + [categories] + one = "分類" + other = "分類" + [tags] + one = "標籤" + other = "標籤" + + [continueReading] + other = "閱讀全文" + + [next] + other = "下一頁" + [previous] + other = "上一頁" + + [toc] + other = "文章目錄" +# END: Base + +# BGN: Theme + [ads] + other = "福利派送" + + [Articles] + other = "中的文章" + [Articles_latest] + other = "最近文章" + [Articles_related] + other = "相關文章" + + [busuanzi] + other = "閱讀" + + [Feed_rss] + other = "文章 RSS" + + [links] + other = "友情鏈接" + + [meta] + other = "其它" + + [tagsNone] + other = "沒有標籤" + + [Search] + other = "搜索" + [Search_keyword] + other = "哈哈" + [Search_results] + other = "的結果" +# END: Theme + +# BGN: Copyright + [Copyright_author] + other = "原文作者:" + [Copyright_link] + other = "原文鏈接:" + [Copyright_license] + other = "原文鏈接:" + [Copyright_license_workUnder] + other = "本作品採用" + [Copyright_license_note] + other = "進行許可,非商業轉載請註明出處(作者,原文鏈接),商業轉載請聯繫作者獲得授權。" +# END: Copyright diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 7d00414..3dc8bda 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -9,23 +9,11 @@ {{ .Title }} - - {{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日 - - {{ with .Params.Categories }} -
- | - {{ range . }} - - {{ . }} - - {{ end }} -
- {{ end }} + {{ partial "post-meta.html" . }}
{{ .Summary }}……
-

阅读全文

+

{{ i18n "continueReading" }}

{{ end }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9f492d8..5b12e12 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,29 +5,18 @@

{{ .Title }}

- - {{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日 - - {{ with .Params.Categories }} -
- | - {{ range . }} - - {{ . }} - - {{ end }} -
- {{ end }} + {{ partial "post-meta.html" . }} {{ if .Site.Params.busuanzi }}
- | - 阅读 +  | + {{ i18n "busuanzi" }} +
{{ end }} {{ if .Params.toc }} {{ end }} @@ -47,7 +36,7 @@ {{ end }} {{ else }} - 没有标签 + {{ i18n "tagsNone" }} {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 3053b84..7240de8 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -2,15 +2,19 @@
{{ if eq .Data.Singular "category" }}

- 分类 + {{ range .Site.Taxonomies.categories.ByCount }} + {{ .Count }} + {{ end }} {{ .Data.Term }} - 中的文章 + {{ i18n "Articles" }}

{{ else if eq .Data.Singular "tag" }}

- 包含标签 + {{ range .Site.Taxonomies.tags.ByCount }} + {{ .Count }} + {{ end }} {{ .Data.Term }} - 的文章 + {{ i18n "Articles" }}

{{ end }} @@ -21,20 +25,10 @@ {{ .Title }} - - {{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日 - - {{ with .Params.Categories }} -
- | - {{ range . }} - {{ . }} - {{ end }} -
- {{ end }} + {{ partial "post-meta.html" . }}
{{ .Summary }}…… -

阅读全文

+

{{ i18n "continueReading" }}

{{ end }} diff --git a/layouts/index.html b/layouts/index.html index e43f648..68adecc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,23 +9,11 @@ {{ .Title }} - - {{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日 - - {{ with .Params.Categories }} -
- | - {{ range . }} - - {{ . }} - - {{ end }} -
- {{ end }} + {{ partial "post-meta.html" . }}
{{ .Summary }}……
-

阅读全文

+

{{ i18n "continueReading" }}

{{ end }} {{ end }} diff --git a/layouts/partials/ads.html b/layouts/partials/ads.html index 8a6a0de..319c006 100644 --- a/layouts/partials/ads.html +++ b/layouts/partials/ads.html @@ -1,6 +1,6 @@ {{ with .Site.Params.ads }}
-

福利派送

+

{{ i18n "ads" }}