Hi, My notes pages were showing up before Hugo v0.122.0+extended. However, after upgrading to v0.123.0+extended or later versions, I can’t seem to view the notes page anymore when deploying. Strangely, I can still see the notes page when running the website locally.
Here’s the command I’m using for localhost:
rm -rf public/ resources/ && hugo mod clean && hugo mod tidy && hugo mod get -u ./... && hugo --gc --minify --cleanDestinationDir && hugo server --disableFastRender
And here’s my .gitlab-ci.yml:
variables:
HUGO_VERSION: latest
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 0
GIT_STRATEGY: clone
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
image: registry.gitlab.com/pages/hugo/hugo_extended:${HUGO_VERSION}
pages:
script:
# Install brotli
- apk update
- apk add brotli
# Build
- hugo mod clean
- hugo mod tidy
- hugo mod get -u ./...
- hugo --gc --minify --cleanDestinationDir
# Compress
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \;
- find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \;
artifacts:
paths:
- public
only:
- main
Hugo env:
hugo v0.123.7-312735366b20d64bd61bff8627f593749f86c964+extended darwin/arm64 BuildDate=2024-03-01T16:16:06Z VendorInfo=gohugoio
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.22.0"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"
This is my repo: MyArchieve
Any insights on why the notes page is not visible after deployment but works fine locally?