markdown: Prefix log messages, and slight refactor

Also change sha1 to md5 for the directory scans; slightly faster.
This commit is contained in:
Matthew Holt
2015-08-05 08:15:52 -06:00
parent e94e90b046
commit 2e8a74ecff
5 changed files with 68 additions and 66 deletions
+2 -2
View File
@@ -25,12 +25,12 @@ func Markdown(c *Controller) (middleware.Middleware, error) {
IndexFiles: []string{"index.md"},
}
// For any configs that enabled static site gen, sweep the whole path at startup
// Sweep the whole path at startup to at least generate link index, maybe generate static site
c.Startup = append(c.Startup, func() error {
for i := range mdconfigs {
cfg := &mdconfigs[i]
// Generate static files.
// Generate link index and static files (if enabled)
if err := markdown.GenerateStatic(md, cfg); err != nil {
return err
}