hugolib: Init the content and shortcodes early
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 22 Apr 2018 09:18:39 +0000 (11:18 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 22 Apr 2018 10:03:01 +0000 (12:03 +0200)
commit19084eaf74246feac61d618c55031369520dfa8e
tree132c5c27642bdc465ae9227c8d7afe17916a6e3b
parent47e7788b3c30de6fb895522096baf2c13598c317
hugolib: Init the content and shortcodes early

In most cases we could delay the content init until rendering time, but there could be use cases where the templates would depend on state set in the shortcodes (.Page.Scratch.Set), so we  need to do this early.

See #4632
hugolib/hugo_sites.go