refactor(Page): Renamed body_html to content.

This commit is contained in:
Spencer Brower
2026-07-28 11:40:04 -04:00
parent 01d13ff279
commit e742832a4b
4 changed files with 40 additions and 28 deletions
+2 -5
View File
@@ -50,7 +50,7 @@ generate_rss :: proc(site: ^Site) -> string {
page.url,
pub_date,
page.url,
xml_escape(page.body_html),
xml_escape(page.content),
),
)
}
@@ -74,10 +74,7 @@ generate_sitemap :: proc(site: ^Site) -> string {
if page.date != "" {
lastmod = fmt.aprintf("<lastmod>%s</lastmod>", page.date)
}
strings.write_string(
&sb,
fmt.aprintf("<url><loc>%s</loc>%s</url>\n", page.url, lastmod),
)
strings.write_string(&sb, fmt.aprintf("<url><loc>%s</loc>%s</url>\n", page.url, lastmod))
}
// Section index pages (for sections without an index in content)