hugo/hugolib/planner.go
Noah Campbell 7919603fb5 Add Translate to target
Translate handles Ugly Urls.
2013-09-03 20:00:22 -07:00

22 lines
358 B
Go

package hugolib
import (
"fmt"
"io"
)
func (s *Site) ShowPlan(out io.Writer) (err error) {
if len(s.Files) <= 0 {
fmt.Fprintf(out, "No source files provided.\n")
}
for _, file := range s.Files {
fmt.Fprintf(out, "%s\n", file)
if s.Target == nil {
fmt.Fprintf(out, " *implicit* => %s\n", "!no target specified!")
continue
}
}
return
}