Skip to content

Commit

Permalink
starters: upgrade to support Hugo breaking changes
Browse files Browse the repository at this point in the history
Tested with Hugo v0.135.0

Addresses recent breaking changes in Hugo:

ERROR deprecated: .Site.GoogleAnalytics was deprecated.

WARN  deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead
  • Loading branch information
gcushen committed Oct 12, 2024
1 parent 39f530d commit 2f0f324
Show file tree
Hide file tree
Showing 34 changed files with 41 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.125.7'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters-bootstrap/research-group/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ removePathAccents: true

enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters-bootstrap/research-group/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/wowchemy/starter-hugo-research-group
go 1.15

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.8-0.20240513193311-41bd113535e8
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.8-0.20241012174104-661cadc17327
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms v0.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240509231741-c3d23d929bc6
)
2 changes: 1 addition & 1 deletion starters-bootstrap/research-group/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.125.7"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down
2 changes: 1 addition & 1 deletion starters/academic-cv/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/academic-cv/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/academic-cv/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231209203044-d31adfedd40b
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/academic-cv/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/academic-cv/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down
2 changes: 1 addition & 1 deletion starters/blog/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/blog/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/blog/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125204555-f431a4a2c705
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/blog/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/blog/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
GO_VERSION = "1.21.5"
NODE_VERSION = "21.1.0"
HUGO_ENABLEGITINFO = "true"
Expand Down
2 changes: 1 addition & 1 deletion starters/documentation/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/documentation/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/documentation/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.15

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/documentation/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/documentation/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down
2 changes: 1 addition & 1 deletion starters/landing-page/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/landing-page/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/landing-page/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/landing-page/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/landing-page/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down
2 changes: 1 addition & 1 deletion starters/link-in-bio/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/link-in-bio/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/link-in-bio/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/link-in-bio/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/link-in-bio/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down
2 changes: 1 addition & 1 deletion starters/resume/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.126.3'
WC_HUGO_VERSION: '0.135.0'

on:
# Trigger the workflow every time you push to the `main` branch
Expand Down
3 changes: 2 additions & 1 deletion starters/resume/config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
pagination:
pagerSize: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
Expand Down
2 changes: 1 addition & 1 deletion starters/resume/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125200520-804c70f7efb8
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240602133901-492e343c2a33
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)
2 changes: 1 addition & 1 deletion starters/resume/hugoblox.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
hugo_version: '0.126.3'
hugo_version: '0.135.0'
2 changes: 1 addition & 1 deletion starters/resume/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
publish = "public"

[build.environment]
HUGO_VERSION = "0.126.3"
HUGO_VERSION = "0.135.0"
HUGO_ENABLEGITINFO = "true"

[context.production.environment]
Expand Down

0 comments on commit 2f0f324

Please sign in to comment.