Nested shortcodes seems wont be reloaded after modifying

hugo server --gc --disableFastRender --enableGitInfo -D

I’ve to restart the Hugo server every time I modified the shortcodes, is there anything I missed?

EDITED: The issue only reaches on homepages (content/_index.md), working fine for single pages.

I am unable to reproduce the problem as described.

git clone --single-branch -b hugo-forum-topic-45616 https://github.com/jmooring/hugo-testing hugo-forum-topic-45616
cd hugo-forum-topic-45616
hugo server --gc --disableFastRender --enableGitInfo -D

Then modify either of these:

  • layouts/shortcodes/foo.html
  • layouts/shortcodes/bar.html

The home page is updated.

Just confirmed that the issue occur on the nested shortcodes.

{{% bar %}}
THIS MODULE SHIPS WITH {{% features %}}.
{{% /bar %}}

The _layouts/shortcodes/features.html` as follows.

**FOOBAR2**

And then modify the features, the page won’t be got updated, it also affects the single pages.

I’m pretty sure this is a known issue.

1 Like

Thank you, should I create an GitHub issue for tracking this on GitHub? I didn’t find an opening related issue on GitHub.

Might be one of these:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.