3 Commits

Author SHA1 Message Date
7fa36fe0ee Merge pull request #408 from QuLogic/min-version
Add required version to config
2023-01-04 09:01:35 +01:00
1f676558df Update README.md 2023-01-04 08:50:14 +01:00
893ded398f Add required version to config
This should generate a warning from hugo if using the standard build, or
an old one.
2023-01-03 20:41:08 -05:00
2 changed files with 6 additions and 2 deletions

View File

@ -99,7 +99,7 @@ You can also choose **one of the 3 possibilities** to install the theme:
# you fetch the theme module. # you fetch the theme module.
# #
# hugo mod init [your website/module name] # hugo mod init [your website/module name]
hugo mod get github.com/panr/hugo-theme-terminal hugo mod get github.com/panr/hugo-theme-terminal/v3
``` ```
and in your config file add: and in your config file add:
@ -109,7 +109,7 @@ and in your config file add:
# this is needed when you fetch the theme as a submodule to your repo. # this is needed when you fetch the theme as a submodule to your repo.
# replacements = "github.com/panr/hugo-theme-terminal -> themes/terminal" # replacements = "github.com/panr/hugo-theme-terminal -> themes/terminal"
[[module.imports]] [[module.imports]]
path = 'github.com/panr/hugo-theme-terminal' path = 'github.com/panr/hugo-theme-terminal/v3'
``` ```
Keep in mind that the theme by default won't show up in the `themes` directory. This means that you are using the theme as it was on the repository at the moment you fetched it. Your local `go.sum` file keeps all the references. Read more about Hugo Modules in the [official documentation](https://gohugo.io/hugo-modules/). Keep in mind that the theme by default won't show up in the `themes` directory. This means that you are using the theme as it was on the repository at the moment you fetched it. Your local `go.sum` file keeps all the references. Read more about Hugo Modules in the [official documentation](https://gohugo.io/hugo-modules/).

View File

@ -0,0 +1,4 @@
[module]
[module.hugoVersion]
extended = true
min = '0.90.0'