chore: Url now stored on page.

This commit is contained in:
Spencer Brower
2026-07-19 12:01:55 -04:00
parent 4fc3eae64c
commit ac43ab1e5a
5 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ og_init :: proc(site: Site) -> Open_Graph {
og_for_page :: proc(site: Site, page: Page, base: Open_Graph) -> Open_Graph {
og := base
is_article := page.section != ""
og.url = fmt.tprintf("%s%s", site.base_url, page.permalink)
og.url = page.url
og.title = strip_html_tags(page.title, context.temp_allocator)
og.type = "article" if is_article else "website"
og.is_article = is_article