-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
What version of Hugo are you using (hugo version)?
$ hugo version hugo v0.148.1+extended+withdeploy linux/amd64 BuildDate=unknown
Does this issue reproduce with the latest release?
yes (0.148.2-1)
While using automatic rebuild (hugo server, hugo -w), newly added content with a shortcode using .Page.Ressources.Get is rendered incorrectly. On hugo restart everything is rendered correctly:
vokoscreenNG-2025-08-20_17-41-03.mp4
This issue was also discussed at https://discourse.gohugo.io/t/page-ressources-get-is-nil-on-automatic-rebuild/55737
The issue can be reproduces as follows:
git clone --single-branch -b hugo-forum-topic-55737 https://github.com/jmooring/hugo-testing hugo-forum-topic-55737
cd hugo-forum-topic-55737
hugo server
In another terminal execute:
cd hugo-forum-topic-55737
cp -r content/posts/post-3 content/posts/post-4
Afterwards, the new post is rendered without image under http://localhost:1313/posts/
After restarting hugo the page is rendered correctly.