fix: fix hugo module version bug (#299)

* docs: Update getStarted.md

* fix: update module version in example site config

* chore: Update index.md

* revert
This commit is contained in:
Spedon
2024-03-16 21:30:40 +08:00
committed by GitHub
parent 66735f4c65
commit b1553a9a8b
2 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ Then import the theme as a dependency adding the following line to the `module`
# config/_default/hugo.toml # config/_default/hugo.toml
[module] [module]
[[module.imports]] [[module.imports]]
path = "github.com/Sped0n/bridget" path = "github.com/Sped0n/bridget/v2"
``` ```
If you want to upgrade the theme, just run: If you want to upgrade the theme, just run:
@@ -162,9 +162,9 @@ We will focus on introducing the part about `theme as module`, detailed comments
```toml ```toml
# theme as module # theme as module
[module] [module]
replacements = "github.com/Sped0n/bridget -> ../.." replacements = "github.com/Sped0n/bridget/v2 -> ../.."
[[module.imports]] [[module.imports]]
path = "github.com/Sped0n/bridget" path = "github.com/Sped0n/bridget/v2"
``` ```
- If you have _installation with Git_ - If you have _installation with Git_

View File

@@ -22,6 +22,6 @@ defaultContentLanguage = 'en'
# theme as module # theme as module
[module] [module]
replacements = "github.com/Sped0n/bridget -> ../.." # deploy with local dir WARN: delete this line if you want to deploy with git replacements = "github.com/Sped0n/bridget/v2 -> ../.." # deploy with local dir WARN: delete this line if you want to deploy with git
[[module.imports]] [[module.imports]]
path = "github.com/Sped0n/bridget" # deploy with git (recommended) WARN: you should also set `bundled` to true in params.toml !!! path = "github.com/Sped0n/bridget/v2" # deploy with git (recommended) WARN: you should also set `bundled` to true in params.toml !!!