From 09afc68b9180d27017b005a51ea67b401743dff9 Mon Sep 17 00:00:00 2001 From: weru <onewesh@gmail.com> Date: Tue, 06 Oct 2020 16:16:50 +0000 Subject: [PATCH] load theme as a hugo module --- exampleSite/config.toml | 5 ++++- exampleSite/go.mod | 5 +++++ exampleSite/go.sum | 2 ++ 3 files changed, 11 insertions(+), 1 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 047f535..710ee58 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,10 @@ baseURL = "https://example.com/" title = "Compose Docs" enableRobotsTXT = true -theme = "compose" +# 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/compose"] +# theme = "compose" enableGitInfo = true disableKinds = ["taxonomy", "taxonomyTerm"] diff --git a/exampleSite/go.mod b/exampleSite/go.mod new file mode 100644 index 0000000..97e7800 --- /dev/null +++ b/exampleSite/go.mod @@ -0,0 +1,5 @@ +module compose-exampleSite + +go 1.15 + +require github.com/onweru/compose v0.0.0-20201006150935-3c1a2b1a5808 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum new file mode 100644 index 0000000..857d26f --- /dev/null +++ b/exampleSite/go.sum @@ -0,0 +1,2 @@ +github.com/onweru/compose v0.0.0-20201006150935-3c1a2b1a5808 h1:6eVMm+cuEWeCodoHVzfjPc1+BOJMvm7boxrsXSMcbBg= +github.com/onweru/compose v0.0.0-20201006150935-3c1a2b1a5808/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc= -- Gitblit v1.10.0