Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page bundle page states "no content files in home page bundle allowed" but hugo behaves different #2476

Closed
irkode opened this issue Mar 9, 2024 · 1 comment

Comments

@irkode
Copy link
Contributor

irkode commented Mar 9, 2024

The Page Bundles page in the docs states that a home page bundle may not contain content files.

but hugo will accept that without any warning and error and generates the site.

looks like the candidate for [#2307]

tested with:

  • hugo v0.123.7-312735366b20d64bd61bff8627f593749f86c964+extended windows/amd64 BuildDate=2024-03-01T16:16:06Z VendorInfo=gohugoio
  • hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended windows/amd64 BuildDate=2024-03-07T13:14:42Z VendorInfo=gohugoio

https://github.com/gohugoio/hugoDocs/blob/master/content/en/content-management/organization/index.md

Page bundles
Hugo 0.32 announced page-relative images and other resources packaged into Page Bundles.

These terms are connected, and you also need to read about Page Resources and Image Processing to get the full picture.

{{< imgproc "1-featured-content-bundles.png" "resize 300x" >}} The illustration shows three bundles. Note that the home page bundle cannot contain other content pages, although other files (images etc.) are allowed. {{< /imgproc >}}

but it's not a problem to create content pages at the root level

Steps to reproduce and discussion on : Discourse 48737

@jmooring
Copy link
Member

Thanks for the detailed report. I have included this in the TODO list for #2307.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants