mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02: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:
@@ -22,7 +22,7 @@ The homepage of your site.
|
||||
### [RSS](/layout/rss/)
|
||||
Used to render all rss documents.
|
||||
|
||||
### [Index](/layout/index)
|
||||
### [Index](/layout/indexes)
|
||||
Page that list multiple pieces of content.
|
||||
|
||||
### [Content](/layout/content)
|
||||
|
Reference in New Issue
Block a user