Rename FrontMatter to Meta

This commit is contained in:
2024-12-09 02:22:37 -05:00
parent c618d7bc5e
commit 67480bb974
6 changed files with 33 additions and 33 deletions

View File

@@ -112,10 +112,10 @@ func (this *Handler) serveDocument (
recorder.Reset()
recorder.Head = res.Header().Clone()
}
if contentType, ok := document.FrontMatter["content-type"]; ok {
if contentType, ok := document.Meta["content-type"]; ok {
recorder.Header().Set("Content-Type", contentType)
}
if status, ok := document.FrontMatter["status"]; ok {
if status, ok := document.Meta["status"]; ok {
if status, err := strconv.Atoi(status); err == nil {
recorder.Status = status
}