diff options
author | crnh <30109443+crnh@users.noreply.github.com> | 2025-01-02 18:42:19 +0000 |
---|---|---|
committer | crnh <30109443+crnh@users.noreply.github.com> | 2025-01-02 18:42:19 +0000 |
commit | fba13e8906fc72e3448d544fd679ed17f198a1e4 (patch) | |
tree | 91e080b1882e1e55ea5cac4fdf79ec812320a482 /wiki | |
parent | dc4b56ae46c0ebea70c12032df91a47cda8c7d3d (diff) |
Add instructions to install as a hugo module
Diffstat (limited to 'wiki')
-rw-r--r-- | wiki/setup.md | 21 |
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 |