diff --git a/CHANGELOG.md b/CHANGELOG.md index 96ac9ff..33a7f11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,13 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add ability to enable inline table of contents in articles (#94 and #95). - Add ability to make table of contents use numbered lists (#95). - Add ability to open search by pressing the slash key. +- Add Simplified Chinese translation (#97). - Add support for Content Security Policy (#90). ### Changed +- Adjust strings to make translation to specific languages possible (#100). - Change fleuron style. - Focus search after opening it. -- Make it possible to rearrange the "Powered by" links (for i18n). - Make the entire article card clickable (#92). - Move quick navigation buttons to the top on mobile. - Return some `-webkit-` prefixes for wider compatibility. diff --git a/config.toml b/config.toml index d756a2e..2c20d41 100644 --- a/config.toml +++ b/config.toml @@ -72,6 +72,13 @@ generate_feeds = true taxonomies = [{ name = "tags", feed = true }] +[languages.zh-Hans] +title = "Duckquill" +description = "有主见、现代、漂亮、简洁的 Zola 主题。" +generate_feeds = true + +taxonomies = [{ name = "tags", feed = true }] + [extra] # Which theme should be used by default (light/dark). # diff --git a/content/_index.zh-Hans.md b/content/_index.zh-Hans.md new file mode 120000 index 0000000..9eb48a3 --- /dev/null +++ b/content/_index.zh-Hans.md @@ -0,0 +1 @@ +_index.md \ No newline at end of file diff --git a/content/blog/_index.zh-Hans.md b/content/blog/_index.zh-Hans.md new file mode 120000 index 0000000..9eb48a3 --- /dev/null +++ b/content/blog/_index.zh-Hans.md @@ -0,0 +1 @@ +_index.md \ No newline at end of file diff --git a/content/blog/dolor/index.zh-Hans.md b/content/blog/dolor/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/dolor/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/blog/drafted-post/index.zh-Hans.md b/content/blog/drafted-post/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/drafted-post/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/blog/ipsum/index.zh-Hans.md b/content/blog/ipsum/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/ipsum/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/blog/long-long-man/index.zh-Hans.md b/content/blog/long-long-man/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/long-long-man/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/blog/lorem/index.zh-Hans.md b/content/blog/lorem/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/lorem/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/blog/the-quill-of-duck/index.zh-Hans.md b/content/blog/the-quill-of-duck/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/blog/the-quill-of-duck/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/demo/index.zh-Hans.md b/content/demo/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/demo/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/content/demo/page.zh-Hans.md b/content/demo/page.zh-Hans.md new file mode 120000 index 0000000..3c4893b --- /dev/null +++ b/content/demo/page.zh-Hans.md @@ -0,0 +1 @@ +page.md \ No newline at end of file diff --git a/content/mods/index.zh-Hans.md b/content/mods/index.zh-Hans.md new file mode 120000 index 0000000..dd0ea36 --- /dev/null +++ b/content/mods/index.zh-Hans.md @@ -0,0 +1 @@ +index.md \ No newline at end of file diff --git a/i18n/zh_CN.toml b/i18n/zh-Hans.toml similarity index 100% rename from i18n/zh_CN.toml rename to i18n/zh-Hans.toml