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 is not rendered randomly(!) #12499

Open
knutov opened this issue May 15, 2024 · 3 comments
Open

Page is not rendered randomly(!) #12499

knutov opened this issue May 15, 2024 · 3 comments

Comments

@knutov
Copy link

knutov commented May 15, 2024

$ hugo version
hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended (from snap)
hugo v0.126.1+extended linux/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew

but I have the same problem with all versions after 0.122.

One page of my site randomly is not rendered by hugo. I mean I can run multiple times this command:

hugo -v --cleanDestinationDir &&  ls -la ./public/directions/index.xml

and sometimes file is present, some times it is not. At the same time file ./public/directions/index.html always exists, but main template block is empty i this file. Page counter is 1 page less when file is not rendered.

Everething is fine with

hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio

but any newer version from releases page, starting from

hugo v0.123.0-3c8a4713908e48e6523f058ca126710397aa4ed5 linux/amd64 BuildDate=2024-02-19T16:32:38Z VendorInfo=gohugoio

is broken.

Thre is nothing special in template for this page, it only contains few blocks like

        {{ .Scratch.Set "block_title" "..." }}
        {{ .Scratch.Set "block_class" "..." }}
        {{ partial "block-direction" . }}
@jmooring
Copy link
Member

There's not much to go on here. Can you provide a minimal example?

@knutov
Copy link
Author

knutov commented May 15, 2024

There's not much to go on here. Can you provide a minimal example?

unfortunately I can not open the code of all site. It looks like the problem is only on page with partials and using .Scratch - is there anything related in changes at 0.123.0?

It will not be easy to minify the code to make the minimal reproducer, is there any better/simpler option?

@bep bep added this to the v0.127.0 milestone May 16, 2024
@bep
Copy link
Member

bep commented May 16, 2024

is there anything related in changes at 0.123.0?

It's impossible for us to say with so little information.

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

No branches or pull requests

3 participants