From 15e86bae9d7fb616536603f078763bf0101a7c86 Mon Sep 17 00:00:00 2001 From: crnh <30109443+crnh@users.noreply.github.com> Date: Thu, 2 Jan 2025 18:42:19 +0000 Subject: [PATCH] Add instructions to install as a hugo module --- wiki/setup.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 +# 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