Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hugo version in netlify.toml #946

Merged
merged 4 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/hugo-toha/toha/exampleSite

go 1.19
go 1.21

replace github.com/hugo-toha/toha/v4 => ../

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
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f // indirect
github.com/hugo-toha/toha/v4 v4.5.0 // indirect
)

replace github.com/hugo-toha/toha/v4 => ../
6 changes: 2 additions & 4 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion exampleSite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion exampleSite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/hugo-toha/toha/v4

go 1.19
go 1.21
2 changes: 1 addition & 1 deletion config.yaml → hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module:
hugoVersion:
min: "0.118.0"
min: "0.122.0"
extended: true
mounts:
- source: content
Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -22,15 +22,15 @@ 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"

[context.branch-deploy]
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"

Expand Down
Loading