Update README

This commit is contained in:
panr 2022-10-22 17:25:55 +02:00
parent 628c104026
commit 661243194d

View File

@ -85,7 +85,11 @@ You can download the theme manually by going to [https://github.com/panr/hugo-th
### Install theme as Hugo Module ### Install theme as Hugo Module
```bash ```bash
hugo mod init github.com/panr/hugo-theme-terminal # If this is the first time you're using Hugo Modules
# in your project. You have to initiate your own module before
# you fetch the theme module.
#
# 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
``` ```
@ -99,13 +103,6 @@ and in your config file add:
path = 'github.com/panr/hugo-theme-terminal' path = 'github.com/panr/hugo-theme-terminal'
``` ```
and also remove reference to the theme (since Hugo Module don't need it):
```toml
# REMOVE OR COMMENT THIS LINE
theme = "terminal"
```
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/).
### Install theme locally ### Install theme locally