diff --git a/README.md b/README.md index 930efc7..db4cbde 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ Pico ships with an fully configured example site. For a quick preview: ``` cd themes/pico/exampleSite/ -hugo server --themesDir ../.. +npm install +hugo server ``` Then visit `http://localhost:1313/` in your browser to view the example site. diff --git a/exampleSite/.hugo_build.lock b/exampleSite/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/exampleSite/go.mod b/exampleSite/go.mod new file mode 100644 index 0000000..db754ad --- /dev/null +++ b/exampleSite/go.mod @@ -0,0 +1,5 @@ +module github.com/negrel/hugo-theme-pico/exampleSite + +go 1.19 + +require github.com/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum new file mode 100644 index 0000000..0af9f9c --- /dev/null +++ b/exampleSite/go.sum @@ -0,0 +1,2 @@ +github.com/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65 h1:slIZRzj20ABDzAxTgfvWyPu6jyiLDZEUjPiqs673Uio= +github.com/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65/go.mod h1:F+ajoXGGIAThW+0Xu17oY7QrBfv6TnHr9DyYLD4fhxI= diff --git a/exampleSite/config.toml b/exampleSite/hugo.toml similarity index 92% rename from exampleSite/config.toml rename to exampleSite/hugo.toml index 7725f10..75a22b1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/hugo.toml @@ -7,7 +7,6 @@ enableEmoji = true languageCode = 'en-us' # Number of blog post per page paginate = 10 -theme = 'pico' # Title of the website is used for the meta tag title # and the square icon (not the favicon) title = 'Pico' @@ -133,3 +132,12 @@ weight = 2 # languageCode = 'es' # languageName = 'EspaƱol' # weight = 4 + +[module] + # uncomment line below for temporary local development of module + # needs hugo v0.109.0 or higher and go 1.18 or higher + # workspace = "hugo.work" + [module.hugoVersion] + extended = true + [[module.imports]] + path = "github.com/negrel/hugo-theme-pico" diff --git a/exampleSite/hugo.work b/exampleSite/hugo.work new file mode 100644 index 0000000..8178a17 --- /dev/null +++ b/exampleSite/hugo.work @@ -0,0 +1,3 @@ +go 1.19 + +use .. \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..30c571d --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/negrel/hugo-theme-pico + +go 1.19