projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af34613
)
Throw a noisy error when a post has no layout
author
Aditya Bhargava
<bluemangroupie@gmail.com>
Sat, 12 Mar 2016 23:22:04 +0000
(15:22 -0800)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Wed, 13 Jul 2016 21:57:18 +0000
(23:57 +0200)
Fixes #1313
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index 2a850b3a96752766bfed50a95076c5076179f59b..174c73953324fe6234b0b2643e953480693fd53e 100644
(file)
--- a/
hugolib/site.go
+++ b/
hugolib/site.go
@@
-2025,7
+2025,7
@@
func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou
func (s *Site) render(name string, d interface{}, w io.Writer, layouts ...string) error {
layout, found := s.findFirstLayout(layouts...)
if found == false {
- jww.
WARN
.Printf("Unable to locate layout for %s: %s\n", name, layouts)
+ jww.
ERROR
.Printf("Unable to locate layout for %s: %s\n", name, layouts)
return nil
}