spf13/hugo — pull request #481 by natefinch (2014-09-05 11:08:16+00:00)
Title: Add Node.Site.Pages to all nodes and ensure all pages exist

Node.Site.Recent is not really just recent pages, but all pages, so I figured it was better to add a new parameter with a more informative name.

I also changed the code slightly so that all pages are added to the site's list of pages before we start rendering shortcodes... this way you can use a shortcode to refer to another page. Previously, this had been broken, because the list of pages would not be fully populated while the shortcodes were being processed. The code that does this is not reading from disk or doing any rendering, so it shouldn't take any more time to do.