mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
fix: Passed description down the context chain.
This commit is contained in:
+12
-10
@@ -20,12 +20,13 @@ Page_Context :: struct {
|
||||
}
|
||||
|
||||
Base_Data :: struct {
|
||||
now: datetime.DateTime,
|
||||
author: string,
|
||||
params: json.Value,
|
||||
body: string,
|
||||
title: string,
|
||||
og: Open_Graph,
|
||||
now: datetime.DateTime,
|
||||
author: string,
|
||||
params: json.Value,
|
||||
body: string,
|
||||
title: string,
|
||||
description: string,
|
||||
og: Open_Graph,
|
||||
}
|
||||
|
||||
Page_Data :: struct {
|
||||
@@ -147,10 +148,11 @@ render_site :: proc(site: ^Site) {
|
||||
|
||||
// Build base data once
|
||||
base := Base_Data {
|
||||
now = now,
|
||||
author = site.author,
|
||||
params = site.params,
|
||||
og = site.og,
|
||||
now = now,
|
||||
author = site.author,
|
||||
params = site.params,
|
||||
description = site.description,
|
||||
og = site.og,
|
||||
}
|
||||
|
||||
// Find home page
|
||||
|
||||
Reference in New Issue
Block a user