From 033e7f4f7934a3f6dfb083fa94810aa4e44fbb43 Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Fri, 24 Jul 2026 12:53:47 -0400 Subject: [PATCH] refactor: `$content`, and `&body` renamed to `$main` and `&content`. --- TODOS.md | 1 + bench/templates/base.html | 2 +- bench/templates/page.html | 4 ++-- defaults/layouts/base.html | 2 +- defaults/layouts/home.html | 6 +++--- defaults/layouts/page.html | 6 +++--- defaults/layouts/section_index.html | 6 +++--- render.odin | 8 ++++---- 8 files changed, 18 insertions(+), 17 deletions(-) diff --git a/TODOS.md b/TODOS.md index 889f30a..21d6606 100644 --- a/TODOS.md +++ b/TODOS.md @@ -45,6 +45,7 @@ - [ ] Integrity hash - Allows users to verify their output didn't change after upgrading to a new version - [ ] Content-hash fingerprinting for CSS and JS cache busting +- [ ] try to combine render_page_html and render_home_html? - [ ] Avoid `json.Value` / `json.Object` where possible. - [ ] Create a json schema file for `thor.json`. - [ ] make `parse` an overload of `parse_text/parse_inline` and `parse_file`, or something. diff --git a/bench/templates/base.html b/bench/templates/base.html index f51cc8b..ff21c61 100644 --- a/bench/templates/base.html +++ b/bench/templates/base.html @@ -6,7 +6,7 @@ {{$nav}}{{/nav}} - {{$content}}{{/content}} + {{$main}}{{/main}} {{$sidebar}}{{/sidebar}} {{$footer}}{{/footer}} diff --git a/bench/templates/page.html b/bench/templates/page.html index d1523b4..00c0295 100644 --- a/bench/templates/page.html +++ b/bench/templates/page.html @@ -12,7 +12,7 @@ {{/nav}} -{{$content}} +{{$main}}

Archive

{{#posts | group_by year}} @@ -26,7 +26,7 @@ {{/posts}}
-{{/content}} +{{/main}} {{$sidebar}}