From d4244c255211cac84cc06f44a7d766ff893480a9 Mon Sep 17 00:00:00 2001 From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com> Date: Fri, 7 Nov 2025 12:00:19 +0000 Subject: [PATCH] Hugo: Bump version and fix frontmatter dupes --- Makefile | 6 +++--- content/agent/changelog.md | 1 - content/nim/nginx-configs/_index.md | 1 - content/waf/install/disconnected-environment.md | 2 +- documentation/hugo-content.md | 2 +- go.mod | 2 +- go.sum | 2 ++ 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9830d9e1e..4d11862af 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ HUGO?=hugo HUGO_VERSION?=$(shell hugo version 2>/dev/null | awk '{print $$2}' | cut -d '.' -f 2) -HUGO_IMG?=hugomods/hugo:std-go-git-0.147.8 +HUGO_IMG?=hugomods/hugo:std-go-git-0.152.2 THEME_MODULE = github.com/nginxinc/nginx-hugo-theme ifeq ($(shell [ $(HUGO_VERSION) -gt 146 2>/dev/null ] && echo true || echo false), true) $(info Hugo is available and has a version greater than 146. Proceeding with build.) else - $(warning Hugo is not available or using a version less than 147. Attempting to use docker. HUGO_VERSION=$(HUGO_VERSION)) + $(warning Hugo is not available or using a version less than 151. Attempting to use docker. HUGO_VERSION=$(HUGO_VERSION)) HUGO=docker run --rm -it -v ${CURDIR}:/src -p 1313:1313 ${HUGO_IMG} /src/hugo-entrypoint.sh ifeq (, $(shell docker version 2> /dev/null)) - $(error Hugo (>0.147) or Docker are required to build the local previews.) + $(error Hugo (>0.151) or Docker are required to build the local previews.) endif endif diff --git a/content/agent/changelog.md b/content/agent/changelog.md index 666c29286..578f8f2b4 100644 --- a/content/agent/changelog.md +++ b/content/agent/changelog.md @@ -1,6 +1,5 @@ --- title: Changelog -toc: false url: /agent/changelog weight: 1200 toc: true diff --git a/content/nim/nginx-configs/_index.md b/content/nim/nginx-configs/_index.md index aedd2e2b2..97b884dea 100644 --- a/content/nim/nginx-configs/_index.md +++ b/content/nim/nginx-configs/_index.md @@ -1,6 +1,5 @@ --- title: Manage NGINX configs -weight: 15 url: /nginx-instance-manager/nginx-configs/ weight: 70 --- \ No newline at end of file diff --git a/content/waf/install/disconnected-environment.md b/content/waf/install/disconnected-environment.md index 8891d5613..d7609439e 100644 --- a/content/waf/install/disconnected-environment.md +++ b/content/waf/install/disconnected-environment.md @@ -46,7 +46,7 @@ In addition to accessing F5 WAF for NGINX documentation, you will be able to acc You will need `git` and `wget` in your connected environment. -Run the following two commands: replace `` with the tarball appropriate to the environment from [the release page](https://github.com/gohugoio/hugo/releases/tag/v0.147.8): +Run the following two commands: replace `` with the tarball appropriate to the environment from [the release page](https://github.com/gohugoio/hugo/releases/tag/v0.152.2): ```shell diff --git a/documentation/hugo-content.md b/documentation/hugo-content.md index c00b69352..770c55c8f 100644 --- a/documentation/hugo-content.md +++ b/documentation/hugo-content.md @@ -12,7 +12,7 @@ For guidance around how to write content, please check [the style guide](/docume You will need to install Hugo _or_ Docker to build or preview documentation in your local development environment. -Read the [Hugo installation instructions](https://gohugo.io/getting-started/installing/) for more information: we are currently running [Hugo v0.147.8](https://github.com/gohugoio/hugo/releases/tag/v0.147.8) in production. +Read the [Hugo installation instructions](https://gohugo.io/getting-started/installing/) for more information: we are currently running [Hugo v0.152.2](https://github.com/gohugoio/hugo/releases/tag/v0.152.2) in production. If you have [Docker](https://www.docker.com/get-started/) installed, there are fallbacks for all requirements in the [Makefile](Makefile), meaning you don't need to install them. diff --git a/go.mod b/go.mod index ce2d2e14a..d76a06c17 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/nginxinc/docs go 1.19 -require github.com/nginxinc/nginx-hugo-theme v1.0.11 // indirect +require github.com/nginxinc/nginx-hugo-theme v1.0.16 // indirect diff --git a/go.sum b/go.sum index 62c56ef71..464399ea7 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ github.com/nginxinc/nginx-hugo-theme v1.0.11 h1:vsiqkg+Ba7CN05SaY9HEPbPinz3Y1xjNZ/qdhhp7Hrc= github.com/nginxinc/nginx-hugo-theme v1.0.11/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M= +github.com/nginxinc/nginx-hugo-theme v1.0.16 h1:4JsqGMI5XTwTkzwpdJ1DxtVpYJvh0J9+duy/wWXqUPg= +github.com/nginxinc/nginx-hugo-theme v1.0.16/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=