Do not fail on unknown Jekyll file

Fixes #1705
This commit is contained in:
Bjørn Erik Pedersen 2015-12-14 15:30:58 +01:00
parent d5ebf64836
commit d1bec54293

View file

@ -385,8 +385,8 @@ func convertJekyllPost(path, relPath, targetDir string, draft bool) error {
filename := filepath.Base(path)
postDate, postName, err := parseJekyllFilename(filename)
if err != nil {
jww.ERROR.Println("Parse filename error:", filename)
return err
jww.WARN.Printf("Failed to parse filename '%s': %s. Skipping.", filename, err)
return nil
}
jww.TRACE.Println(filename, postDate, postName)