I use the Store function to retrieve content between pages, and it’s pretty cool.
But there is a difference between serve and deploy rendering: when I serve Hugo I have all the content, including data retrieved with the Store function, but when I deploy it some content are not generate.
My test repository are here, and the difference are visible on the section pages:
home: I have all my definitions retrieved from the section (the definitions are tagged in the sections with the shortcode definition.html)
sections: when I serve the sections pages the definitions are displayed (the definitions are called with the shortcode call.html), but not when I deploy it.
Any idea why the two modes (serve and deploy) have different renderings? Is it an effect from the Store function?
Oh thanks it’s make totally sense (and it’s exactly what you explained to me in a previous post)! So I have to force to render the content where the shortcode “definition” are, before the content where the shortcode “call” are, with something like {{ $bidule := .WordCount }} (or other methods, is that right?
We are agree on the fact that I can’t define a render order? Is Hugo really renders all pages in parallel (I’m just curious about that point)?