From 34f08dda705dbdc776f1b7bcea11e9958552383c Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Wed, 12 Jan 2022 15:01:34 +0100 Subject: [PATCH] Turn stack theme into a hugo module --- README.md | 5 ++++- exampleSite/go.mod | 3 +++ go.mod | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 exampleSite/go.mod 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/exampleSite/go.mod b/exampleSite/go.mod new file mode 100644 index 0000000..a54877e --- /dev/null +++ b/exampleSite/go.mod @@ -0,0 +1,3 @@ +module github.com/CaiJimmy/hugo-theme-stack/exampleSite + +go 1.12 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