mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
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.
This commit is contained in:
parent
197aacb647
commit
9500ec1b6b
10 changed files with 134 additions and 84 deletions
9
hugolib/page_permalink_test.go
Normal file
9
hugolib/page_permalink_test.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package hugolib
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPermalink(t *testing.T) {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue