diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-09-05 13:36:15 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-09-05 13:36:15 +0300 |
commit | 3c8c0f16ae90a31ad3738015a91bee3b0b60ea82 (patch) | |
tree | 58ad8f93a38dda7abc923acae30a71ffd72ba2ea | |
parent | b9c555c27d4ef1dc09b86602ec808c6f7749cd80 (diff) |
Make the exampleSite work with Hugo 0.58.0
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | exampleSite/go.mod | 5 | ||||
-rw-r--r-- | exampleSite/go.sum | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7433d28..d0178b1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,6 +15,12 @@ pygmentsUseClasses = false defaultContentLanguage = "en" +[module] +[module.hugoVersion] +[[module.imports]] +# We include the theme by "../.." above, but we need one module import for Hugo to detect us as a Hugo Module. +path="github.com/bep/empty-hugo-module" + [params] search = true diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 7e883d7..05bdccc 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -2,4 +2,7 @@ module github.com/bep/docuapi go 1.12 -require github.com/lord/slate v2.3.1+incompatible // indirect +require ( + github.com/bep/empty-hugo-module v1.0.0 // indirect + github.com/lord/slate v2.3.1+incompatible // indirect +) diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 334bd8d..9a823f2 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -1,2 +1,4 @@ +github.com/bep/empty-hugo-module v1.0.0 h1:aYc9RWea644CdYjg9zCy8nkVF4KjC3fwhUTvvcXXg8s= +github.com/bep/empty-hugo-module v1.0.0/go.mod h1:whohinbSjMoFi/Skivj9kvdPs1tEgzYpZ4rXoQk/0/I= github.com/lord/slate v2.3.1+incompatible h1:uRy5iSKUWJdeozlS9RVWbeC1ZRyySLOCn20ve6iYw6A= github.com/lord/slate v2.3.1+incompatible/go.mod h1:ujwDH+XJN1hPpN4JfN8Cp65e5jk3DGf+Jz0/nbJxoUM= |