···6969 return tmpl.Write(dest, metaTemplate, data)
7070}
71717272-// extract takes the source markdown page, extracts the frontmatter
7272+// extractFrontmatter takes the source markdown page, extracts the frontmatter
7373// and body. The body is converted from markdown to html here.
7474func (md *Markdown) extractFrontmatter(source []byte) error {
7575 r := bytes.NewReader(source)
+6-1
formats/yaml/yaml.go
···7676 return fmt.Errorf("yaml: meta section is not a map: %s", y.Path)
7777 }
78787979- y.meta = metaInterface
7979+ stringMeta := make(map[string]any)
8080+ for k, v := range metaInterface {
8181+ stringMeta[k] = convertToString(v)
8282+ }
8383+8484+ y.meta = stringMeta
80858186 err = y.template(dest, types.TemplatesDir, templateData{
8287 config.Config,