From 011e2a2abb4f4ab18bc3d748f913409790c96a6a Mon Sep 17 00:00:00 2001 From: weru Date: Wed, 11 Jan 2023 22:51:04 +0300 Subject: [PATCH] use theme as module in exampleSite Signed-off-by: weru --- exampleSite/config.toml | 5 ++++- exampleSite/go.mod | 5 +++++ exampleSite/go.sum | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 exampleSite/go.mod create mode 100644 exampleSite/go.sum diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e972cc1..cfdd4ee 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,9 @@ baseurl = "https://example.com/" # Include trailing slash title = "Newsroom" -theme = "newsroom" +# this example loads the theme as hugo module +# comment out line below, and uncomment the line after it if you prefer to load the theme normally +theme = ["github.com/onweru/newsroom"] # edit this if you'ld rather use a fork of this repo +# theme = "newsroom" author = "Weru" canonifyurls = true paginate = 6 diff --git a/exampleSite/go.mod b/exampleSite/go.mod new file mode 100644 index 0000000..27c2383 --- /dev/null +++ b/exampleSite/go.mod @@ -0,0 +1,5 @@ +module newsroom + +go 1.19 + +require github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum new file mode 100644 index 0000000..b6b6df3 --- /dev/null +++ b/exampleSite/go.sum @@ -0,0 +1,2 @@ +github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce h1:154LMn9uUtkbu60xl5MDKo5fb9OVbYule0GIn1ApEaY= +github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce/go.mod h1:CnPS3gSJseLHZMhLLbxe+qDzR54HQ7s5RaLujOkejuM=