diff options
author | Mag Mell <[email protected]> | 2023-04-15 15:23:52 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-15 15:23:52 +0800 |
commit | af452723a9640e26306c9c8f86ead34272411100 (patch) | |
tree | 518f24df24ef7fe4c25cb314c80d25ad493b2123 | |
parent | e5eaf4a27da895640a246e48cad33304407b9651 (diff) | |
download | Seje2-af452723a9640e26306c9c8f86ead34272411100.tar.gz Seje2-af452723a9640e26306c9c8f86ead34272411100.tar.bz2 Seje2-af452723a9640e26306c9c8f86ead34272411100.zip |
docs: add zh-cn README
-rw-r--r-- | README_zh_cn.md | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/README_zh_cn.md b/README_zh_cn.md new file mode 100644 index 0000000..aac8f9d --- /dev/null +++ b/README_zh_cn.md @@ -0,0 +1,74 @@ +# 寫嘢 + + + +[Demo](https://eatradish.github.io/Seje2) + +## Contents + +- [Installation](#installation) +- [Options](#options) + - [Top menu](#top-menu) + - ["About" page](#"About"-page) + +## 安装 +确保使用 zola init myblog 创建了你的 zola 博客文件夹,然后将 Seje2 克隆到本地 themes 文件下: + +```bash +cd themes +git clone https://github.com/eatradish/Seje2 +``` + +之后在 `config.toml` 文件中指定 theme 为 Seje2: + +```toml +theme = "Seje2" +``` + +之后需要你修改 content 的 index 文件 (`content/_index.md`) 来设置在首页中一页能显示多少篇文章: + +```toml +paginate_by = 5 +``` + + +以及,在你的关于页面 (`about/_index.md`) 中,添加以下行: + +```toml +title = "..." + +[extra] +year = 2019 +month = 11 +day = 3 +``` + +## 选项 + +### 菜单栏 +要修改菜单栏的内容,请修改 `config.toml` extra 中 `seje2_menu_links` 的内容,像下面这样: + +```toml +seje2_menu_links = [ + {url = "$BASE_URL", name = "Home"}, + {url = "$BASE_URL/categories", name = "Categories"}, + {url = "$BASE_URL/tags", name = "Tags"}, + {url = "https://google.com", name = "Google"}, +] +``` + +这个 BASE_URL 是你在 `config.toml` 中 `base_url` 字段的内容,像 demo 中就是: + +```toml +base_url = "https://blog.miraclemilk.me/Seje2" +``` + +### 文章版权 + +可以在 `config.toml` 的 `extra` 中修改 `License 字段的内容`,来设置你的文章版权显示: + +```toml +license = "@ 宇宙眼睛人" +``` + +这会在博客的页尾显示你的文章版权,留空就可以不显示。 |