diff options
author | Hamin Mousavi <github@hamin.se> | 2023-04-15 19:33:20 +0300 |
---|---|---|
committer | JM Fergeau <buttbadger@gmail.com> | 2023-04-15 19:33:20 +0300 |
commit | 4417d54f5bf6c98b5446c333c88d36dd58bd8ce9 (patch) | |
tree | bdb3fb1fce2c65bc28dd897fc875def8c712db29 /README.md | |
parent | c3468d1a485ea0b0f96a2b52da2d97282330c831 (diff) |
Updated README.md to add how to use the theme with Hugo Module imports...
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -8,6 +8,29 @@ HUGO.386 is a port of the [BOOTSTRA.386](//github.com/kristopolous/BOOTSTRA.386) ![Example of Hugo blog with the theme](images/screenshot.png) ## Installation + +### As a Hugo module +Remove your previously used theme variable from your site config and remove the themes directory, or move it out of your Hugo site repo. + +In your siteconfig add the following: + +``` +[module] + [[module.imports]] + path = "gitlab.com/jmfergeau/hugo.386" + +``` + +Inside the folder of your Hugo site run: + + $ hugo mod init hugo386 + +Finally to clean up the go.mod and update/generate the go.sum file which track the module dependencies for your site, run: + + $ hugo mod tidy + +### With git submodules + Inside the folder of your Hugo site run: $ git submodule add https://gitlab.com/jmfergeau/hugo.386 themes/hugo.386 |