diff --git a/lib/content.go b/lib/content.go index 3c4cd1f..24363a9 100644 --- a/lib/content.go +++ b/lib/content.go @@ -35,6 +35,14 @@ func ListContent(dir string) ([]Content, error) { } for _, e := range entries { + if e.IsDir() { + subres, err := ListContent(path.Join(dir, e.Name())) + if err != nil { + return res, err + } + res = append(res, subres...) + } + if(!strings.HasSuffix(e.Name(), ".json")) { continue }