Update hugo version in netlify.toml (#946)

* Update hugo version in netlify.toml

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Rename config.yaml to hugo.yaml

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Use go version 1.21

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Fix link

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

---------

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
Emruz Hossain 2024-06-02 00:47:22 +06:00 committed by GitHub
parent 6350e5e2e2
commit 8599c634e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 18 additions and 20 deletions

View file

@ -111,7 +111,7 @@ hugo mod init github.com/<your username>/<your repo name>
##### 2. Add this theme as your module dependency
Now, in your `config.yaml` file, add a `module` section.
Now, in your `hugo.yaml` file, add a `module` section.
```yaml
# Use Hugo modules to add theme
@ -120,7 +120,7 @@ module:
- path: github.com/hugo-toha/toha/v4
```
Check this sample [config.yaml](https://github.com/hugo-toha/hugo-toha.github.io/blob/main/config.yaml) for further reference.
Check this sample [hugo.yaml](https://github.com/hugo-toha/hugo-toha.github.io/blob/main/hugo.yaml) for further reference.
##### 3. Update your module
@ -207,7 +207,7 @@ $ npm install
$ hugo server -w
```
Now, you can make change in the theme and they will be reflected immediately on the running site. If you need to change any configuration, you can do that in the `config.yaml` file inside `exampleSite` folder. If you need to add any content or data, you can create the respective folder inside `exampleSite` directory and add your desired content or data there.
Now, you can make change in the theme and they will be reflected immediately on the running site. If you need to change any configuration, you can do that in the `hugo.yaml` file inside `exampleSite` folder. If you need to add any content or data, you can create the respective folder inside `exampleSite` directory and add your desired content or data there.
#### Running the forked theme against your own site

View file

@ -1,10 +1,10 @@
module github.com/hugo-toha/toha/exampleSite
go 1.19
require (
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d // indirect
github.com/hugo-toha/toha/v4 v4.4.0 // indirect
)
go 1.21
replace github.com/hugo-toha/toha/v4 => ../
require (
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f // indirect
github.com/hugo-toha/toha/v4 v4.5.0 // indirect
)

View file

@ -1,4 +1,2 @@
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d h1:TWNaAG2e1EZDvtl64fjyriR/qc8m7qaKnN13DgKzkFk=
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d/go.mod h1:BRsZS1LeIc+eSM2OWSOeXDNeZUNRcTlJtw1bL874AfQ=
github.com/hugo-toha/toha/v4 v4.4.0 h1:RdRpjfsPgE+VXb/m3Rl+1n86pVZTrplsDvtXYK3wNh0=
github.com/hugo-toha/toha/v4 v4.4.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f h1:EpJlxR6ruHtcBIHLVlmfgpoPGAjpAvopGq8h1wscEwY=
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f/go.mod h1:0gXAIE/H9B3kwsNvyqXXP0gTLCzi/DKwoIOz8Bb9j9c=

View file

@ -32,7 +32,7 @@
"mermaid": "^9.2.1",
"plyr": "^3.7.2",
"popper.js": "^1.16.1",
"postcss": "^8.4.21",
"postcss": "^8.4.31",
"postcss-cli": "^8.3.1"
}
},

View file

@ -56,7 +56,7 @@
"mermaid": "^9.2.1",
"plyr": "^3.7.2",
"popper.js": "^1.16.1",
"postcss": "^8.4.21",
"postcss": "^8.4.31",
"postcss-cli": "^8.3.1"
},
"name": "exampleSite",

2
go.mod
View file

@ -1,3 +1,3 @@
module github.com/hugo-toha/toha/v4
go 1.19
go 1.21

View file

@ -1,6 +1,6 @@
module:
hugoVersion:
min: "0.118.0"
min: "0.122.0"
extended: true
mounts:
- source: content

View file

@ -5,7 +5,7 @@ publish = "exampleSite/public"
[context.production.environment]
HUGO_ENABLEGITINFO = "true"
HUGO_ENV = "production"
HUGO_VERSION = "0.124.0"
HUGO_VERSION = "0.126.2"
NODE_VERSION = "v20.11.1"
NPM_VERSION = "10.5.0"
@ -22,7 +22,7 @@ command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install &
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.124.0"
HUGO_VERSION = "0.126.2"
NODE_VERSION = "v20.11.1"
NPM_VERSION = "10.5.0"
@ -30,7 +30,7 @@ command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install &
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.124.0"
HUGO_VERSION = "0.126.2"
NODE_VERSION = "v20.11.1"
NPM_VERSION = "10.5.0"