Hi All,
Platform: Hugo Static Site Generator v0.55.5 freebsd/amd64 BuildDate: unknown
I have a readfile function in my home.md file as follows:
{{< readfile file="/quote.md" markdown=“true” >}}
and I’ve enabled the shortcode in my layouts shortcodes directory.
It works fine with the hugo server command when first started:
hugo server --ignoreCache --disableFastRender --noHTTPCache --watch --gc -D
and the file contents (a random quote) shows up on the home page.
However, I can’t seem to get the hugo server to reload that file when I change
the contents by overwriting quote.md with a new quote. The output from the server
command does see that the file has been changed:
Rebuild for events [pathtofile/quote.md : WRITE]
so it knows the file was changed, but the hugo server is not serving the new content.
The old content is still there, even if I start a new browser.
Note - if I also modify the home.md (adding a blank line), then everything is
reread and new content appears. But I don’t want to have to change home.md.
I only want to change quote.md.
Any ideas on how I can get hugo server to read and serve the new
changed content for quote.md?
Best Regards,
Jim B.