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)
|
//spew.Dump(navMap)
|
||||||
|
|
||||||
templateDir := *inDir + "/templates"
|
templatesDir := *inDir + "/templates"
|
||||||
helper.SetTemplateDir(templateDir)
|
helper.SetTemplateDir(templatesDir)
|
||||||
helper.RegisterFilters(templateDir + "/filters")
|
filtersDir := templatesDir + "/filters"
|
||||||
|
if _, err := os.Stat(filtersDir); !os.IsNotExist(err) {
|
||||||
|
helper.RegisterFilters(filtersDir)
|
||||||
|
}
|
||||||
helper.ProcessContent(contentConfig, contentConfig)
|
helper.ProcessContent(contentConfig, contentConfig)
|
||||||
|
|
||||||
helper.ProcessAssets()
|
helper.ProcessAssets()
|
||||||
|
Loading…
Reference in New Issue
Block a user