fix unexpected panic

This commit is contained in:
Jacky Zhao 2021-10-24 22:56:24 -07:00
parent 00ad08df2f
commit 15440a1f59
2 changed files with 3 additions and 2 deletions

View File

@ -37,4 +37,4 @@ jobs:
output: data # output folder
index: true # whether to index content
...
```
```

View File

@ -107,7 +107,8 @@ func walk(root, ext string, index bool) (res []Link, i ContentIndex) {
frontmatter, body, err := m.Parse(strings.NewReader(text))
if err != nil {
panic(err)
frontmatter = map[string]interface{}{}
body = text
}
var title string