🐛 Add v2 to go path

pull/100/head
James Panther 2022-02-03 14:53:57 +11:00
parent 1bd584efda
commit a1175cdcdf
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ This method is the quickest and easiest for keeping the theme up-to-date. Hugo u
```toml
[[imports]]
path = "github.com/jpanther/congo"
path = "github.com/jpanther/congo/v2"
```
4. Start your server using `hugo server` and the theme will be downloaded automatically.

View File

@ -30,14 +30,14 @@ The process for upgrading Congo will depend on how you include the theme in your
### Upgrade using Hugo
Hugo makes updating modules super easy. Simply change into your project directory and execute the following command:
To upgrade a go module to a new major release, the `modules.toml` and `go.mod` files need to be updated. In each file, update the path to the theme from `github.com/jpanther/congo` to `github.com/jpanther/congo/v2`.
Then change into your project directory and execute the following command:
```shell
hugo mod get -u
```
Hugo will automatically upgrade any modules that are required for your project. It does this by inspecting your `module.toml` and `go.mod` files. If you have any issues with the upgrade, check to ensure these files are still configured correctly.
Once the theme has been upgraded, continue to the [next section](#step-3-theme-configuration).
### Upgrade using git

2
go.mod
View File

@ -1,3 +1,3 @@
module github.com/jpanther/congo
module github.com/jpanther/congo/v2
go 1.16