This content is read by my file ‘themes/perso/layouts/_default/single.html’, here is the part of the file concern. It activates only if the key “abstract” is set.
This change of behaviour seems strange. Maybe I don’t have the best practice with the {{$.Scratch.Get “key” }} but it works in one case so I don’t understand.
The comportment of this bug is strange because in some random run it doesn’t reproduce. (but it mostly bug ^^)
This is clearly an issue with your theme, not a bug.
Correct.
Prior to v0.48.0 (August 29, 2018) you could not assign a new value to a variable once it had been initialized. This was due to a Golang limitation that took over three years to address.
The Hugo “Scratch” was created to work around this limitation. Unfortunately, this outdated construct still exists in examples, tutorials, and themes.
There are valid reasons to use a Scratch, but this isn’t one of them.