Turn stack theme into a hugo module

This commit is contained in:
Andreas Deininger 2022-01-12 15:01:34 +01:00
parent 86cbc1b682
commit 34f08dda70
3 changed files with 10 additions and 1 deletions

View File

@ -35,7 +35,10 @@ It's necessary to use **Hugo Extended ≥ 0.87.0**.
## Installation ## Installation
Clone / Download this repository to `theme` folder, and edit your site config following `exampleSite/config.yaml`. * Route 1: Clone / Download this repository to `theme` folder
* Route 2: Turn your site into a hugo module and add this theme as a module dependency
Edit your site config following `exampleSite/config.yaml`.
*Note: Remove `config.toml` if there is one in the site folder.* *Note: Remove `config.toml` if there is one in the site folder.*

3
exampleSite/go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/CaiJimmy/hugo-theme-stack/exampleSite
go 1.12

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/CaiJimmy/hugo-theme-stack
go 1.12