Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author贺叶霜 <i@heysh.xyz>2023-08-22 03:25:07 +0300
committerGitHub <noreply@github.com>2023-08-22 03:25:07 +0300
commitdd607ca18911aafed5f551e1cf02561fd4ba26f5 (patch)
tree19683d304f1605c98b100d9d31b4d6e6722fcf67 /README.md
parent20bbb65bfaf691811ccc7ac900371098536bfe18 (diff)
parent201f37c2fb0e87ee95293f726ef7f5c0779e4e15 (diff)
Merge pull request #43 from deining/support-hugo-moduleHEADmaster
Support for theme installation as hugo module
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/README.md b/README.md
index 70334de..4177243 100644
--- a/README.md
+++ b/README.md
@@ -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