refactor: Broke config/flags into a separate struct from Site.

This commit is contained in:
Spencer Brower
2026-07-14 16:47:12 -04:00
parent 3c149246be
commit 00b73c04ba
4 changed files with 86 additions and 48 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ Page :: struct {
// TODO: What is the lifetime of pages?
walk_content :: proc(site: ^Site) -> []Page {
content_path := site.content_dir
include_drafts := site.drafts
sectionate := site.sectionate
include_drafts := .Drafts in site.features
sectionate := .Sections in site.features
allocator := site_allocator(site)