diff options
author | 贺叶霜 <i@heysh.xyz> | 2023-08-22 03:25:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 03:25:07 +0300 |
commit | dd607ca18911aafed5f551e1cf02561fd4ba26f5 (patch) | |
tree | 19683d304f1605c98b100d9d31b4d6e6722fcf67 /README.md | |
parent | 20bbb65bfaf691811ccc7ac900371098536bfe18 (diff) | |
parent | 201f37c2fb0e87ee95293f726ef7f5c0779e4e15 (diff) |
Support for theme installation as hugo module
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -11,14 +11,32 @@ This theme is especially optimized for Chinese characters, while works well with ![1](https://raw.githubusercontent.com/heyeshuang/hugo-theme-tokiwa/master/images/screenshot.png) ![2](https://raw.githubusercontent.com/heyeshuang/hugo-theme-tokiwa/master/images/screenshot02.png) -A live demo is at <http://heysh.xyz/hugo-theme-tokiwa/>. +A live demo is at <https://heysh.xyz/hugo-theme-tokiwa/>. ## Install +### Git submodule + Inside the folder of your Hugo site run: ```bash $ git submodule add https://github.com/heyeshuang/hugo-theme-tokiwa.git themes/hugo-theme-tokiwa ``` + +### Hugo module + +Inside the folder of your Hugo site run: +```bash +$ hugo mod init https://github.com/<YOUR_NAME>/<THEME_NAME> +$ hugo mod get https://github.com/heyeshuang/hugo-theme-tokiwa +``` + +Then add to your `hugo.toml`: +```toml +[module] +[[module.imports]] + path = "github.com/heyeshuang/hugo-theme-tokiwa" +``` + ## available config params ```toml |