fixed run, if templates/filters is missing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
079534ab71
commit
8e84901465
9
main.go
9
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()
|
||||
|
Loading…
Reference in New Issue
Block a user