From b1553a9a8b54ae1a2736dd78d0c7d831d7db3cf4 Mon Sep 17 00:00:00 2001 From: Spedon Date: Sat, 16 Mar 2024 21:30:40 +0800 Subject: [PATCH] fix: fix hugo module version bug (#299) * docs: Update getStarted.md * fix: update module version in example site config * chore: Update index.md * revert --- doc/getStarted.md | 6 +++--- exampleSite/config/_default/hugo.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/getStarted.md b/doc/getStarted.md index c8db8fc..29ce9e9 100644 --- a/doc/getStarted.md +++ b/doc/getStarted.md @@ -60,7 +60,7 @@ Then import the theme as a dependency adding the following line to the `module` # config/_default/hugo.toml [module] [[module.imports]] -path = "github.com/Sped0n/bridget" +path = "github.com/Sped0n/bridget/v2" ``` 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 # theme as module [module] -replacements = "github.com/Sped0n/bridget -> ../.." +replacements = "github.com/Sped0n/bridget/v2 -> ../.." [[module.imports]] -path = "github.com/Sped0n/bridget" +path = "github.com/Sped0n/bridget/v2" ``` - If you have _installation with Git_ diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index e21531f..f766ca2 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -22,6 +22,6 @@ defaultContentLanguage = 'en' # theme as 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]] -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 !!!