summaryrefslogtreecommitdiffstats
path: root/hugolib/planner.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-09-18 11:52:30 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-09-18 11:52:30 -0700
commit5374242ff7b6cc1677baf9a1dd2b835d8ee6d18f (patch)
tree4343b2af45326a3343b5d53e14d069b0fcf0bb5f /hugolib/planner.go
parentc510140c0c55394d5b699c62f60df53ef8a164c7 (diff)
More expressive --check output
Diffstat (limited to 'hugolib/planner.go')
-rw-r--r--hugolib/planner.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/hugolib/planner.go b/hugolib/planner.go
index 96962350e..88d5dee7a 100644
--- a/hugolib/planner.go
+++ b/hugolib/planner.go
@@ -14,11 +14,16 @@ func (s *Site) ShowPlan(out io.Writer) (err error) {
fmt.Fprintf(out, "%s", p.FileName)
if p.IsRenderable() {
fmt.Fprintf(out, " (renderer: markdown)")
+ } else {
+ fmt.Fprintf(out, " (renderer: n/a)")
}
+ if s.Tmpl != nil {
+ fmt.Fprintf(out, " (layout: %s, exists: %t)", p.Layout(), s.Tmpl.Lookup(p.Layout()) != nil)
+ }
fmt.Fprintf(out, "\n")
fmt.Fprintf(out, " canonical => ")
if s.Target == nil {
- fmt.Fprintf(out, "%s\n", "!no target specified!")
+ fmt.Fprintf(out, "%s\n\n", "!no target specified!")
continue
}
@@ -39,6 +44,7 @@ func (s *Site) ShowPlan(out io.Writer) (err error) {
}
fmt.Fprintf(out, " %s => %s\n", alias, aliasTrans)
}
+ fmt.Fprintln(out)
}
return
}