From a41a7803a407e03fbcc2beabc75b746726fa2994 Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Fri, 17 Jul 2026 17:04:43 -0400 Subject: [PATCH] feat: Simplified templates. --- TODOS.md | 5 ++--- render.odin | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/TODOS.md b/TODOS.md index 8a3b384..28dd1f3 100644 --- a/TODOS.md +++ b/TODOS.md @@ -1,5 +1,3 @@ -- README.md - - [ ] "Zero is beautiful" - [ ] Content-hash fingerprinting for CSS and JS cache busting - [ ] Clean up the default layouts - [ ] Performance @@ -37,7 +35,6 @@ - [ ] filesystem poll loop - [ ] event based - [ ] Free cmark HTML output (`body_html`) — cmark allocates via C malloc, not the arena, so it leaks per iteration in watch mode -- [ ] Rename `{{#is_post}}` to `{{#is_article}}` in templates and data model — currently hardcoded to posts section, should use `is_article` (any page with a section) instead. - [ ] Mount content in VFS - [ ] commands - [ ] `build` alias of default @@ -47,6 +44,8 @@ - [ ] Import/export packages. Hugo, jekyll, WordPress, etc. - [ ] Markdown - [ ] Add overloads for every extension - accept ^strings.Builder. + - [ ] Add conventional (Hugo style) footnotes option. + - [ ] Add header ids - [ ] Review every file in thor - [ ] Review assets.odin - [ ] Review content.odin diff --git a/render.odin b/render.odin index b13e490..0e4c72b 100644 --- a/render.odin +++ b/render.odin @@ -43,7 +43,6 @@ Page_Data :: struct { page_title: string, date_iso: string, date_display: string, - is_post: bool, og_section: string, og_published: string, } @@ -310,7 +309,6 @@ render_page_html :: proc( data.body = page.body_html data.date_iso = page.date data.date_display = format_date(page.date) - data.is_post = is_article data.og_url = fmt.tprintf("%s%s", site.base_url, page.permalink) data.og_title = strip_html_tags(page.title) data.og_type = og_type(is_article)