From 996701fde0827c465c1cfa177198fded081cd22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Kozie=C5=82?= Date: Tue, 18 Oct 2022 23:26:27 +0200 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c192a2e..eba1e30 100644 --- a/README.md +++ b/README.md @@ -85,10 +85,23 @@ You can download the theme manually by going to [https://github.com/panr/hugo-th ### Install theme as Hugo Module -``` +```bash +hugo mod init github.com/panr/hugo-theme-terminal@module +hugo mod get -u +# or hugo mod get github.com/panr/hugo-theme-terminal@module ``` +then in config.toml add: + +```toml +[module] +[[module.imports]] + path = 'github.com/panr/hugo-theme-terminal' +``` + +When you do that, you don't need to add `theme = "terminal"`. The theme should be "mounted" right away. + Please keep in mind that for the time of testing the theme is available as a module only from `module` branch. After testing period (fall, 2022), the module will be available on `master` branch by default. More about Hugo Modules in the [official documentation](https://gohugo.io/hugo-modules/).