rename function

This commit is contained in:
Kirill Zhuravlev 2023-02-14 23:50:57 +01:00 committed by Avelino
parent 258c4fb4d6
commit 34c5e361ee
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -100,7 +100,7 @@ func renderAll() error {
})
})
if err := makeSiteStruct(objs); err != nil {
if err := renderCategories(objs); err != nil {
// FIXME: remove all panics
return fmt.Errorf("unable to render categories: %w", err)
}
@ -143,7 +143,7 @@ func mkdirAll(path string) error {
return nil
}
func makeSiteStruct(objs map[string]Object) error {
func renderCategories(objs map[string]Object) error {
for _, obj := range objs {
categoryDir := filepath.Join(outDir, obj.Slug)
if err := mkdirAll(categoryDir); err != nil {