fix: Passed description down the context chain.

This commit is contained in:
Spencer Brower
2026-07-21 09:27:04 -04:00
parent 566d6f0768
commit 4ea44e8a09
+12 -10
View File
@@ -20,12 +20,13 @@ Page_Context :: struct {
} }
Base_Data :: struct { Base_Data :: struct {
now: datetime.DateTime, now: datetime.DateTime,
author: string, author: string,
params: json.Value, params: json.Value,
body: string, body: string,
title: string, title: string,
og: Open_Graph, description: string,
og: Open_Graph,
} }
Page_Data :: struct { Page_Data :: struct {
@@ -147,10 +148,11 @@ render_site :: proc(site: ^Site) {
// Build base data once // Build base data once
base := Base_Data { base := Base_Data {
now = now, now = now,
author = site.author, author = site.author,
params = site.params, params = site.params,
og = site.og, description = site.description,
og = site.og,
} }
// Find home page // Find home page