From bc13537b760e70d950b6fc16b5b30f5b377923d4 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Mon, 17 Apr 2023 20:23:29 -0400 Subject: [PATCH] this is how you use modules --- config.toml | 7 ++++++- go.mod | 5 +++++ go.sum | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/config.toml b/config.toml index a982928..5c8a9fe 100644 --- a/config.toml +++ b/config.toml @@ -3,10 +3,15 @@ languageCode = "en-us" title = 'form and function' # Add it only if you keep the theme in the `themes` directory. # Remove it if you use the theme as a remote Hugo Module. -theme = "terminal" paginate = 7 enableGitInfo = true +[module] + # this is needed when you fetch the theme as a submodule to your repo. + # replacements = "github.com/panr/hugo-theme-terminal -> themes/terminal" +[[module.imports]] + path = 'github.com/panr/hugo-theme-terminal/v3' + [params] # dir name of your main content (default is `content/posts`). # the list of set content will show up on your index page (baseurl). diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..7b66bd4 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module blog.ndumas.com + +go 1.19 + +require github.com/panr/hugo-theme-terminal/v3 v3.1.2 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..c8e1900 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/panr/hugo-theme-terminal/v3 v3.1.2 h1:DZXzAabj8zG/9k6kSE9uQLtJUoPGA5KiSeiBbni3oHM= +github.com/panr/hugo-theme-terminal/v3 v3.1.2/go.mod h1:Cs+1ub6qhz/G43ohdRSR1U2qNqGLO9h0qgTG4Jq9Wo4=