From 2f0f3249cb2241c8cc195f37ead2eb531e0e571a Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 12 Oct 2024 18:55:17 +0100 Subject: [PATCH] starters: upgrade to support Hugo breaking changes 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 --- .../research-group/.github/workflows/publish.yaml | 2 +- starters-bootstrap/research-group/config/_default/hugo.yaml | 3 ++- starters-bootstrap/research-group/go.mod | 2 +- starters-bootstrap/research-group/netlify.toml | 2 +- starters/academic-cv/.github/workflows/publish.yaml | 2 +- starters/academic-cv/config/_default/hugo.yaml | 3 ++- starters/academic-cv/go.mod | 2 +- starters/academic-cv/hugoblox.yaml | 2 +- starters/academic-cv/netlify.toml | 2 +- starters/blog/.github/workflows/publish.yaml | 2 +- starters/blog/config/_default/hugo.yaml | 3 ++- starters/blog/go.mod | 2 +- starters/blog/hugoblox.yaml | 2 +- starters/blog/netlify.toml | 2 +- starters/documentation/.github/workflows/publish.yaml | 2 +- starters/documentation/config/_default/hugo.yaml | 3 ++- starters/documentation/go.mod | 2 +- starters/documentation/hugoblox.yaml | 2 +- starters/documentation/netlify.toml | 2 +- starters/landing-page/.github/workflows/publish.yaml | 2 +- starters/landing-page/config/_default/hugo.yaml | 3 ++- starters/landing-page/go.mod | 2 +- starters/landing-page/hugoblox.yaml | 2 +- starters/landing-page/netlify.toml | 2 +- starters/link-in-bio/.github/workflows/publish.yaml | 2 +- starters/link-in-bio/config/_default/hugo.yaml | 3 ++- starters/link-in-bio/go.mod | 2 +- starters/link-in-bio/hugoblox.yaml | 2 +- starters/link-in-bio/netlify.toml | 2 +- starters/resume/.github/workflows/publish.yaml | 2 +- starters/resume/config/_default/hugo.yaml | 3 ++- starters/resume/go.mod | 2 +- starters/resume/hugoblox.yaml | 2 +- starters/resume/netlify.toml | 2 +- 34 files changed, 41 insertions(+), 34 deletions(-) diff --git a/starters-bootstrap/research-group/.github/workflows/publish.yaml b/starters-bootstrap/research-group/.github/workflows/publish.yaml index e3d835a03..df0a321e8 100644 --- a/starters-bootstrap/research-group/.github/workflows/publish.yaml +++ b/starters-bootstrap/research-group/.github/workflows/publish.yaml @@ -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 diff --git a/starters-bootstrap/research-group/config/_default/hugo.yaml b/starters-bootstrap/research-group/config/_default/hugo.yaml index 93691f4b0..dc92120b1 100644 --- a/starters-bootstrap/research-group/config/_default/hugo.yaml +++ b/starters-bootstrap/research-group/config/_default/hugo.yaml @@ -21,7 +21,8 @@ removePathAccents: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters-bootstrap/research-group/go.mod b/starters-bootstrap/research-group/go.mod index 16f02e746..78413c84f 100644 --- a/starters-bootstrap/research-group/go.mod +++ b/starters-bootstrap/research-group/go.mod @@ -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 ) diff --git a/starters-bootstrap/research-group/netlify.toml b/starters-bootstrap/research-group/netlify.toml index f2014aeba..e9a206f3a 100644 --- a/starters-bootstrap/research-group/netlify.toml +++ b/starters-bootstrap/research-group/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.125.7" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/academic-cv/.github/workflows/publish.yaml b/starters/academic-cv/.github/workflows/publish.yaml index 53a106e0d..c1d520abe 100644 --- a/starters/academic-cv/.github/workflows/publish.yaml +++ b/starters/academic-cv/.github/workflows/publish.yaml @@ -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 diff --git a/starters/academic-cv/config/_default/hugo.yaml b/starters/academic-cv/config/_default/hugo.yaml index f9c00fc20..836e88d9f 100644 --- a/starters/academic-cv/config/_default/hugo.yaml +++ b/starters/academic-cv/config/_default/hugo.yaml @@ -25,7 +25,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/academic-cv/go.mod b/starters/academic-cv/go.mod index 3288a7139..959d27d9e 100644 --- a/starters/academic-cv/go.mod +++ b/starters/academic-cv/go.mod @@ -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 ) diff --git a/starters/academic-cv/hugoblox.yaml b/starters/academic-cv/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/academic-cv/hugoblox.yaml +++ b/starters/academic-cv/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/academic-cv/netlify.toml b/starters/academic-cv/netlify.toml index c01bf6225..18ba241da 100644 --- a/starters/academic-cv/netlify.toml +++ b/starters/academic-cv/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.126.3" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/blog/.github/workflows/publish.yaml b/starters/blog/.github/workflows/publish.yaml index 7df62683a..b376aa152 100644 --- a/starters/blog/.github/workflows/publish.yaml +++ b/starters/blog/.github/workflows/publish.yaml @@ -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 diff --git a/starters/blog/config/_default/hugo.yaml b/starters/blog/config/_default/hugo.yaml index 8c7b8a9b4..f8f1d864c 100644 --- a/starters/blog/config/_default/hugo.yaml +++ b/starters/blog/config/_default/hugo.yaml @@ -46,7 +46,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/blog/go.mod b/starters/blog/go.mod index ff9da9518..1e1597c74 100644 --- a/starters/blog/go.mod +++ b/starters/blog/go.mod @@ -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 ) diff --git a/starters/blog/hugoblox.yaml b/starters/blog/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/blog/hugoblox.yaml +++ b/starters/blog/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/blog/netlify.toml b/starters/blog/netlify.toml index d7dcdbf35..bde98a269 100644 --- a/starters/blog/netlify.toml +++ b/starters/blog/netlify.toml @@ -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" diff --git a/starters/documentation/.github/workflows/publish.yaml b/starters/documentation/.github/workflows/publish.yaml index 7df62683a..b376aa152 100644 --- a/starters/documentation/.github/workflows/publish.yaml +++ b/starters/documentation/.github/workflows/publish.yaml @@ -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 diff --git a/starters/documentation/config/_default/hugo.yaml b/starters/documentation/config/_default/hugo.yaml index 058ab22b2..45c2dab28 100644 --- a/starters/documentation/config/_default/hugo.yaml +++ b/starters/documentation/config/_default/hugo.yaml @@ -55,7 +55,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/documentation/go.mod b/starters/documentation/go.mod index 80d331ca5..ef809ac8a 100644 --- a/starters/documentation/go.mod +++ b/starters/documentation/go.mod @@ -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 ) diff --git a/starters/documentation/hugoblox.yaml b/starters/documentation/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/documentation/hugoblox.yaml +++ b/starters/documentation/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/documentation/netlify.toml b/starters/documentation/netlify.toml index f4459b69d..c7d92b777 100644 --- a/starters/documentation/netlify.toml +++ b/starters/documentation/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.126.3" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/landing-page/.github/workflows/publish.yaml b/starters/landing-page/.github/workflows/publish.yaml index 7df62683a..b376aa152 100644 --- a/starters/landing-page/.github/workflows/publish.yaml +++ b/starters/landing-page/.github/workflows/publish.yaml @@ -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 diff --git a/starters/landing-page/config/_default/hugo.yaml b/starters/landing-page/config/_default/hugo.yaml index 9698960ed..700752b7d 100644 --- a/starters/landing-page/config/_default/hugo.yaml +++ b/starters/landing-page/config/_default/hugo.yaml @@ -52,7 +52,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/landing-page/go.mod b/starters/landing-page/go.mod index 197568af8..aaf3abcef 100644 --- a/starters/landing-page/go.mod +++ b/starters/landing-page/go.mod @@ -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 ) diff --git a/starters/landing-page/hugoblox.yaml b/starters/landing-page/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/landing-page/hugoblox.yaml +++ b/starters/landing-page/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/landing-page/netlify.toml b/starters/landing-page/netlify.toml index 44bd1b67e..e9a206f3a 100644 --- a/starters/landing-page/netlify.toml +++ b/starters/landing-page/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.126.3" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/link-in-bio/.github/workflows/publish.yaml b/starters/link-in-bio/.github/workflows/publish.yaml index 095ed5326..94a305ee9 100644 --- a/starters/link-in-bio/.github/workflows/publish.yaml +++ b/starters/link-in-bio/.github/workflows/publish.yaml @@ -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 diff --git a/starters/link-in-bio/config/_default/hugo.yaml b/starters/link-in-bio/config/_default/hugo.yaml index 73e4b957d..a5f9a4b93 100644 --- a/starters/link-in-bio/config/_default/hugo.yaml +++ b/starters/link-in-bio/config/_default/hugo.yaml @@ -23,7 +23,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/link-in-bio/go.mod b/starters/link-in-bio/go.mod index 2464d3f90..27326df17 100644 --- a/starters/link-in-bio/go.mod +++ b/starters/link-in-bio/go.mod @@ -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 ) diff --git a/starters/link-in-bio/hugoblox.yaml b/starters/link-in-bio/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/link-in-bio/hugoblox.yaml +++ b/starters/link-in-bio/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/link-in-bio/netlify.toml b/starters/link-in-bio/netlify.toml index 44bd1b67e..e9a206f3a 100644 --- a/starters/link-in-bio/netlify.toml +++ b/starters/link-in-bio/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.126.3" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/resume/.github/workflows/publish.yaml b/starters/resume/.github/workflows/publish.yaml index 095ed5326..94a305ee9 100644 --- a/starters/resume/.github/workflows/publish.yaml +++ b/starters/resume/.github/workflows/publish.yaml @@ -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 diff --git a/starters/resume/config/_default/hugo.yaml b/starters/resume/config/_default/hugo.yaml index f1ba22cc5..686939153 100644 --- a/starters/resume/config/_default/hugo.yaml +++ b/starters/resume/config/_default/hugo.yaml @@ -23,7 +23,8 @@ build: writeStats: true enableGitInfo: false summaryLength: 30 -paginate: 10 +pagination: + pagerSize: 10 enableEmoji: true enableRobotsTXT: true footnotereturnlinkcontents: ^ diff --git a/starters/resume/go.mod b/starters/resume/go.mod index aa6fd674e..593d78a8f 100644 --- a/starters/resume/go.mod +++ b/starters/resume/go.mod @@ -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 ) diff --git a/starters/resume/hugoblox.yaml b/starters/resume/hugoblox.yaml index bf71f98e9..10c576e8e 100644 --- a/starters/resume/hugoblox.yaml +++ b/starters/resume/hugoblox.yaml @@ -1,2 +1,2 @@ build: - hugo_version: '0.126.3' + hugo_version: '0.135.0' diff --git a/starters/resume/netlify.toml b/starters/resume/netlify.toml index 44bd1b67e..e9a206f3a 100644 --- a/starters/resume/netlify.toml +++ b/starters/resume/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.126.3" + HUGO_VERSION = "0.135.0" HUGO_ENABLEGITINFO = "true" [context.production.environment]