Rename FrontMatter to Meta
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user