From 201f37c2fb0e87ee95293f726ef7f5c0779e4e15 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 20 Aug 2023 22:41:00 +0200 Subject: Support for theme installation as hugo module --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'README.md') 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 . +A live demo is at . ## 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// +$ 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 -- cgit v1.2.3