diff options
author | Noah Campbell <noahcampbell@gmail.com> | 2013-10-07 07:57:45 +0300 |
---|---|---|
committer | Noah Campbell <noahcampbell@gmail.com> | 2013-10-08 18:44:15 +0200 |
commit | 9500ec1b6bd23276621d267d7532ab22f33fb157 (patch) | |
tree | 13edc9437b29ac01a509b447cd324959d0e96920 /hugolib/page_permalink_test.go | |
parent | 197aacb6472732126312c22b5bde730ef34258a6 (diff) |
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.
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r-- | hugolib/page_permalink_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go new file mode 100644 index 000000000..d318505b8 --- /dev/null +++ b/hugolib/page_permalink_test.go @@ -0,0 +1,9 @@ +package hugolib + +import ( + "testing" +) + +func TestPermalink(t *testing.T) { + +} |