diff --git a/main.go b/main.go index 92da561..0b1c962 100644 --- a/main.go +++ b/main.go @@ -120,9 +120,12 @@ func main() { //spew.Dump(navMap) - templateDir := *inDir + "/templates" - helper.SetTemplateDir(templateDir) - helper.RegisterFilters(templateDir + "/filters") + templatesDir := *inDir + "/templates" + helper.SetTemplateDir(templatesDir) + filtersDir := templatesDir + "/filters" + if _, err := os.Stat(filtersDir); !os.IsNotExist(err) { + helper.RegisterFilters(filtersDir) + } helper.ProcessContent(contentConfig, contentConfig) helper.ProcessAssets()