Refactor layout selection code
authorNoah Campbell <noahcampbell@gmail.com>
Mon, 7 Oct 2013 04:57:45 +0000 (07:57 +0300)
committerNoah Campbell <noahcampbell@gmail.com>
Tue, 8 Oct 2013 16:44:15 +0000 (18:44 +0200)
commit9500ec1b6bd23276621d267d7532ab22f33fb157
tree13edc9437b29ac01a509b447cd324959d0e96920
parent197aacb6472732126312c22b5bde730ef34258a6
Refactor layout selection code

The render code path would use a fallback if there was an exception.
This change instead relies on explicit declaration of the layout to use
and includes a check to see if the layout indeed exists before
attempting to render it.
docs/content/layout/templates.md
docs/layouts/chrome/menu.html
hugolib/node.go
hugolib/page.go
hugolib/page_permalink_test.go [new file with mode: 0644]
hugolib/page_test.go
hugolib/path_seperators_test.go
hugolib/planner.go
hugolib/site.go
hugolib/site_test.go