Now it hit me with a strange OS related issue:
See the logs at end of the post
Source is here: code at: GitHub - irkode/hugo-forum: just a playground for topics from the Discurse Hugo froum and
Generates 4 pages on
- GitHub runner Ubuntu-latest
- local WSL installation on Windows. - also Ubuntu
Generates 5 pages on
- GitHub runner Windows (2019)
- local Windows 11
The missing page
-
mounted from
/examples/.../index.md
to a section in/content/examples
source:/examples/bare-metal-website/content/index.md
should be generated to:/public/examples/bare-metal-website/index.html
-
Permalinks adjusted to omit the content folder.
'/examples' = '/:sections/:slug'
and the logfiles below with different outputs.
baseURL = "https://irkode.github.io/hugo-forum/"
defaultContentLanguage = "en"
title = "Forum Example"
disableKinds = ['RSS', 'sitemap', 'taxonomy', 'term']
[permalinks]
[permalinks.page]
'/examples' = '/:sections/:slug'
[module]
# workaround for -cleanDestinationDir without having need for a static folder: https://github.com/gohugoio/hugo/issues/8433
[[module.mounts]]
target = 'static'
source = 'static'
excludeFiles = [".keep"]
[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "/examples"
target = "content/examples"
includeFiles = ["/**/_index.md","/**/index.md"]
looks like there’s a different behavior for these systems
- The windows version gives a DEBUG output about the Permalink mapping
- the Ubuntu run does not, but warns about an unused template
which is exactly the template that should render the page
no CSS and WEBP used, so I guess the difference there is not important
Windows:
hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended windows/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoio
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.22.2"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"
Start building sites …
hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended windows/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoio
INFO static: removing all files from destination that don't exist in static dirs
INFO static: syncing static files to \ duration 0s
INFO build: step process substep collect files 7 files_total 7 duration 0s
INFO build: step process duration 0s
DEBUG Set expanded permalink path for page examples\bare-metal-website\content\index.md to "//examples/bare-metal-website/"
INFO build: step assemble duration 0s
INFO build: step render substep pages site en outputFormat html duration 10.1186ms
INFO build: step render pages 5 content 5 duration 10.1186ms
INFO build: step postProcess duration 0s
INFO build: duration 10.1186ms
| EN
-------------------+-----
Pages | 5
Paginator pages | 0
Non-page files | 1
Static files | 0
Processed images | 0
Aliases | 0
Cleaned | 0
Total in 15 ms
WSL Ubuntu:
hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended linux/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoio
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.22.2"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"
Start building sites …
hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended linux/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoio
INFO static: removing all files from destination that don't exist in static dirs
INFO static: syncing static files to / duration 294.73µs
INFO build: step process substep collect files 5 files_total 5 duration 545.599µs
INFO build: step process duration 627.955µs
INFO build: step assemble duration 228.935µs
INFO build: step render substep pages site en outputFormat html duration 4.228275ms
INFO build: step render pages 4 content 4 duration 4.881566ms
WARN Template examples/single-baseof.html is unused, source file /home/rik/github/hugo-forum/layouts/examples/single-baseof.html
INFO build: step postProcess duration 3.717µs
INFO build: duration 5.928086ms
| EN
-------------------+-----
Pages | 4
Paginator pages | 0
Non-page files | 1
Static files | 0
Processed images | 0
Aliases | 0
Cleaned | 0
Total in 11 ms