Run hugo serve and open localhost:1313/otherpage/ you will see that from otherpage/index.md only warn.md include has been rendered. info.md from nested inlc has not.
/includes and /otherpage/incl are both leaf bundles and marked as headless: true. Why first is accessible and second is not?
I’ve added some warn messages to include shortcode for debug purpose. Message appear in console on first render only and when shortcode is saved. For some reason second shortcode in file don’t execute…
And life reload stopped to work for some reason (if you will add/remove shortcode you need manually refresh the browser).
Following Hugo build was used:
$ hugo version
Hugo Static Site Generator v0.72.0/extended darwin/amd64 BuildDate: unknown
I was happy with answer because it worked… But seems like it doesn’t …
It not works when I start hugo serve. It renders only include from /includes/warn.md file.
While server is running, I delete otherpage/incl/index.md and recreate it. Now include from otherpage/incl/info.md is also on the screen.
Now I stop the server. Run hugo to build the website. Open public/otherpage/index.html. Only warn.md is included. (public dir was deleted before running the command)