summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2025-01-03 01:01:55 +0100
committerGitHub <noreply@github.com>2025-01-03 01:01:55 +0100
commit38f8720f02493bf1660f365ad66c5093f34ef822 (patch)
tree91e080b1882e1e55ea5cac4fdf79ec812320a482
parentdc4b56ae46c0ebea70c12032df91a47cda8c7d3d (diff)
parentfba13e8906fc72e3448d544fd679ed17f198a1e4 (diff)
Merge pull request #61 from crnh/main
Add instructions to install as a hugo module
-rw-r--r--wiki/setup.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/wiki/setup.md b/wiki/setup.md
index b5ddc79..ffb2111 100644
--- a/wiki/setup.md
+++ b/wiki/setup.md
@@ -34,6 +34,27 @@ git submodule add --depth=1 https://github.com/tomfran/typo.git themes/typo
git submodule update --init --recursive
```
+**Hugo module**
+
+Installing Typo as a Hugo module requires Go to be installed in your development environment.
+
+```bash
+# Initialize your project as a Hugo module
+hugo mod init <module_name>
+# Install the theme
+hugo mod get github.com/tomfran/typo
+```
+
+Then add the following to `hugo.toml`:
+
+```toml
+[module]
+[[module.imports]]
+path = "github.com/tomfran/typo"
+```
+
+Finally, remove the `theme = 'typo'` parameter from `hugo.toml`.
+
**Cloning**
```bash