From e045d273ad70879eb44889d0893776b517362e66 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Sat, 4 Nov 2023 17:56:30 +0800 Subject: [PATCH] feat(hugo.toml): add support for theme as a local file and as a module --- exampleSite/config/_default/hugo.toml | 13 +++++++++---- go.mod | 3 +++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 go.mod diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index c87d919..3906406 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -1,9 +1,5 @@ # your website url baseURL = 'https://www.example.com/' -# path to theme directory -themesdir = '../..' -# theme name -theme = 'Bridget' # website title title = 'Bridget' # don't touch this @@ -21,3 +17,12 @@ enableRobotsTXT = true # * ja (powered by Noto Sans JP) # * ko (powered by Noto Sans KR) defaultContentLanguage = 'en' + +# theme as local file +# themesdir = "../.." +# theme = "bridget" + +# theme as module +[module] +[[module.imports]] +path = "github.com/Sped0n/bridget" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a469fad --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/Sped0n/bridget + +go 1.20