From 0dcfb1a9742c3113c2cee766d30869b23b4636fa Mon Sep 17 00:00:00 2001 From: Edit Mr <61068739+Edit-Mr@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:44:52 +0800 Subject: ZH-TW translation & PowerShell command (#400) * ZH-TW translation & PowerShell command Signed-off-by: Edit Mr <61068739+Edit-Mr@users.noreply.github.com> * Fix ZH-TW Translation Signed-off-by: Edit Mr <61068739+Edit-Mr@users.noreply.github.com> Signed-off-by: Edit Mr <61068739+Edit-Mr@users.noreply.github.com> --- README.md | 46 +++++++++++++++++++++++++--------------------- i18n/zh-TW.toml | 4 ++-- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f0619fc..eab2dfe 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,10 @@ hugo mod init ```bash wget -O - https://github.com/chipzoller/hugo-clarity/archive/master.tar.gz | tar xz && cp -a hugo-clarity-master/exampleSite/* . && rm -rf hugo-clarity-master && rm -f config.toml ``` +If you are using PowerShell, paste this instead: +```bash +wget -O - https://github.com/chipzoller/hugo-clarity/archive/master.tar.gz | tar xz -and cp -a hugo-clarity-master/exampleSite/* . -and rm -rf hugo-clarity-master -and rm -f config.toml +``` If you do already have a site and don't want to risk overwriting anything, we suggest copying the contents of [`config`](exampleSite/config/) over, as well as replacing your `archetypes/post.md` (if it exists) with [Hugo Clarity's](exampleSite/archetypes/post.md). Then migrate any necessary settings from `/config.toml` to `/config/_default/config.toml` and remove the original `/config.toml` file. 4. Open `/config/_default/config.toml` and change `theme = "hugo-clarity"` to `theme = ["github.com/chipzoller/hugo-clarity"]` @@ -670,26 +674,26 @@ Going by the above 👆🏻 reason, we recommend adding custom CSS and JS via th ``` ├── yourSite -│   ├── archetypes -│   │   └── post.md -│   ├── assets -│   │   ├── js -│   │   │   └── custom.js -│   │   └── sass -│   │   ├── _custom.sass -│   │   └── _override.sass -│   ├── config -│   │   └── _default -│   │   ├── config.toml -│   │   ├── configTaxo.toml -│   │   ├── languages.toml -│   │   ├── markup.toml -│   │   ├── menus -│   │   │   ├── menu.en.toml -│   │   │   └── menu.pt.toml -│   │   └── params.toml -│   ├── content -│   │   ├── _index.md +│ ├── archetypes +│ │ └── post.md +│ ├── assets +│ │ ├── js +│ │ │ └── custom.js +│ │ └── sass +│ │ ├── _custom.sass +│ │ └── _override.sass +│ ├── config +│ │ └── _default +│ │ ├── config.toml +│ │ ├── configTaxo.toml +│ │ ├── languages.toml +│ │ ├── markup.toml +│ │ ├── menus +│ │ │ ├── menu.en.toml +│ │ │ └── menu.pt.toml +│ │ └── params.toml +│ ├── content +│ │ ├── _index.md ``` However, sometimes you may need to load additional style or script files. In such cases, you can add custom `.css` and `.js` files by listing them in the `config.toml` file (see the snippet below). Similar to images, these paths should be relative to the `static` directory. @@ -949,4 +953,4 @@ Hugo Clarity has a [code of conduct](CODE_OF_CONDUCT.md). Please follow it in al ## License -Hugo Clarity is open-sourced under the [MIT license](https://github.com/chipzoller/hugo-clarity/blob/master/LICENSE.md). \ No newline at end of file +Hugo Clarity is open-sourced under the [MIT license](https://github.com/chipzoller/hugo-clarity/blob/master/LICENSE.md). diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index efb0a42..06b5c69 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -50,7 +50,7 @@ other = "所有專欄" other = "文章目錄" [reading_time] -other = "{{ .ReadingTime }} min read" +other = "{{ .ReadingTime }} 分鐘長" [series_posts] -other = "Posts in this series" +other = "此系列文章" -- cgit v1.2.3