From fe661c8c3826140c3b006b66abdd581a745e604c Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 20 Jan 2022 11:16:28 +0100 Subject: [PATCH] feat: turn stack theme into a hugo module (#460) * Turn stack theme into a hugo module --- README.md | 5 ++++- go.mod | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 go.mod diff --git a/README.md b/README.md index 6ac9e91..0e6caa2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,10 @@ It's necessary to use **Hugo Extended ≥ 0.87.0**. ## 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.* diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1cf4674 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/CaiJimmy/hugo-theme-stack + +go 1.12