Update README.md

This commit is contained in:
Junyi 2024-03-04 14:43:45 +08:00 committed by GitHub
parent 8102136cba
commit 13027bb92d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,23 +36,11 @@ Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo
You need to install an extended version of Hugo to run this theme. You need to install an extended version of Hugo to run this theme.
### As Hugo Module (easier and recommended)
Initiate a `hugo` module system from your project's root directory
```shell
hugo mod init github.com/<your_user>/<your_project>
```
Add the following to your `config.toml` or `config.yaml`
```toml
theme = ["github.com/Junyi-99/hugo-theme-anubis2"]
```
### As Git Submodule ### As Git Submodule
Inside the folder of your Hugo site run: Inside the folder of your Hugo site run:
$ git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis $ git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2
For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo. For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo.