Sssooo, I’ve added a code like:
{{- page.Scratch.Add "RenderOrder" "-> Partial name here <-" -}}
to partials involved into styles generation. Then a warning in baseof to display RenderOrder
.Scratch
:
{{- with .Scratch.Get "RenderOrder" -}}
{{ warnf "Render order %q for %q" . page.TranslationKey -}}
{{- end -}}
And here is what I’ve got:
- For the first run of local Hugo server:
Render order "Add-styles-for-imagesHeadThumbnail-or-full-picture...Thumbnail-or-full-pictureAdd-styles-for-imagesHead" for "home"
Double render of head partial! But at least I get those styles.
2. If I change any partial and save changes:
Render order "Add-styles-for-imagesHead" for "home"
Render order is killing .Scratch
usage.