summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hugo-modules/use-modules.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/hugo-modules/use-modules.md')
-rw-r--r--docs/content/en/hugo-modules/use-modules.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/content/en/hugo-modules/use-modules.md b/docs/content/en/hugo-modules/use-modules.md
index 85417b5bf..baf68d21b 100644
--- a/docs/content/en/hugo-modules/use-modules.md
+++ b/docs/content/en/hugo-modules/use-modules.md
@@ -30,9 +30,20 @@ Use `hugo mod init` to initialize a new Hugo Module. If it fails to guess the mo
hugo mod init github.com/gohugoio/myShortcodes
```
-
Also see the [CLI Doc](/commands/hugo_mod_init/).
+## Use a Module for a Theme
+The easiest way to use a for a theme is to import it in the config.
+
+1. Initialize the hugo module system: `hugo mod init github.com/<your_user>/<your_project>`
+2. Import the theme in your `config.toml`:
+
+```toml
+[module]
+ [[module.imports]]
+ path = "github.com/spf13/hyde/"
+```
+
## Update Modules
Modules will be downloaded and added when you add them as imports to your configuration, see [Module Imports](/hugo-modules/configuration/#module-config-imports).