feat: Simplified templates.

This commit is contained in:
Spencer Brower
2026-07-17 17:04:43 -04:00
parent 66b5c5a934
commit a41a7803a4
2 changed files with 2 additions and 5 deletions
+2 -3
View File
@@ -1,5 +1,3 @@
- README.md
- [ ] "Zero is beautiful"
- [ ] Content-hash fingerprinting for CSS and JS cache busting - [ ] Content-hash fingerprinting for CSS and JS cache busting
- [ ] Clean up the default layouts - [ ] Clean up the default layouts
- [ ] Performance - [ ] Performance
@@ -37,7 +35,6 @@
- [ ] filesystem poll loop - [ ] filesystem poll loop
- [ ] event based - [ ] event based
- [ ] Free cmark HTML output (`body_html`) — cmark allocates via C malloc, not the arena, so it leaks per iteration in watch mode - [ ] 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 - [ ] Mount content in VFS
- [ ] commands - [ ] commands
- [ ] `build` alias of default - [ ] `build` alias of default
@@ -47,6 +44,8 @@
- [ ] Import/export packages. Hugo, jekyll, WordPress, etc. - [ ] Import/export packages. Hugo, jekyll, WordPress, etc.
- [ ] Markdown - [ ] Markdown
- [ ] Add overloads for every extension - accept ^strings.Builder. - [ ] Add overloads for every extension - accept ^strings.Builder.
- [ ] Add conventional (Hugo style) footnotes option.
- [ ] Add header ids
- [ ] Review every file in thor - [ ] Review every file in thor
- [ ] Review assets.odin - [ ] Review assets.odin
- [ ] Review content.odin - [ ] Review content.odin
-2
View File
@@ -43,7 +43,6 @@ Page_Data :: struct {
page_title: string, page_title: string,
date_iso: string, date_iso: string,
date_display: string, date_display: string,
is_post: bool,
og_section: string, og_section: string,
og_published: string, og_published: string,
} }
@@ -310,7 +309,6 @@ render_page_html :: proc(
data.body = page.body_html data.body = page.body_html
data.date_iso = page.date data.date_iso = page.date
data.date_display = format_date(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_url = fmt.tprintf("%s%s", site.base_url, page.permalink)
data.og_title = strip_html_tags(page.title) data.og_title = strip_html_tags(page.title)
data.og_type = og_type(is_article) data.og_type = og_type(is_article)