feat: Made starred no longer a priviledged value.

This commit is contained in:
Spencer Brower
2026-07-31 10:32:42 -04:00
parent 18733f31d1
commit bfd8bd7eff
5 changed files with 95 additions and 7 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ Frontmatter :: struct {
publishDate: string,
weight: Maybe(int),
menus: json.Value,
params: json.Value,
layout: string,
og: Open_Graph,
draft: bool,
isStarred: bool,
}
// parse_frontmatter splits raw file content into a Frontmatter struct and the
@@ -56,12 +56,12 @@ parse_frontmatter :: proc(content: string) -> (fm: Frontmatter, body: string, ok
fm.publishDate = json_get_string(obj, "publishDate")
fm.weight = json_get_int(obj, "weight")
fm.draft = json_get_bool(obj, "draft")
fm.isStarred = json_get_bool(obj, "isStarred")
if v, ok := obj["menus"]; ok {
fm.menus = v
}
fm.layout = json_get_string(obj, "layout")
fm.og = json_get_open_graph(obj, "og")
if v, ok := obj["params"]; ok { fm.params = v }
ok = true
return