hugolib: Fix reloading corner cases for shortcodes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 10 Mar 2017 19:54:50 +0000 (20:54 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 11 Mar 2017 19:21:06 +0000 (20:21 +0100)
commit2f2ea42c091931fe4735e0ca7b37dc05cb8c044b
treeca1d5fa25acf4d955936c2f9f3f8536edca4176a
parent5f443bd45bd63c10796fc340985fddf218c7ef0d
hugolib: Fix reloading corner cases for shortcodes

This commit fixes two different, but related issues:

1) Live-reload when a new shortcode was defined in the content file before the shortcode itself was created.
2) Live-reload when a newly defined shortcode changed its "inner content" status.

This commit also improves the shortcode related error messages to include the full path to the content file in question.

Fixes #3156
hugolib/hugo_sites.go
hugolib/page.go
hugolib/page_collections.go
hugolib/shortcode.go
hugolib/shortcode_test.go
hugolib/site.go