From c3efbf80f0223f1386dd8862b7fceeca442c4652 Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Sat, 11 Jul 2026 10:30:17 -0400 Subject: [PATCH] build: Switched site build from Hugo to Thor. --- TODOS.md | 2 -- render.odin | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TODOS.md b/TODOS.md index 91fee30..0fd26a8 100644 --- a/TODOS.md +++ b/TODOS.md @@ -3,8 +3,6 @@ - Look at the source for 3 template languages that support mustache syntax, and see how they implement the tempaltes, then pick the best one. One of them should be Hugo / go. -- [ ] Deal with the favicon -- [ ] Icon support. - [ ] robots.txt? - [ ] Evaluate Tufte CSS — borrow sidenote CSS or replace TailwindCSS entirely - Option B: Steal Tufte's sidenote/margin-note CSS (adapt for dark theme), keep TailwindCSS diff --git a/render.odin b/render.odin index 8ae9bf8..a3178bf 100644 --- a/render.odin +++ b/render.odin @@ -26,9 +26,6 @@ render_site :: proc(pages: []Page, content_path: string, output_dir: string, bas } } - // Copy static assets (avatar, favicon, etc.) - copy_static_assets(content_path, output_dir) - // Render individual content pages (skip home) for page in pages { if page.type == .Home { @@ -58,6 +55,9 @@ render_site :: proc(pages: []Page, content_path: string, output_dir: string, bas sitemap := generate_sitemap(pages, base_url) write_file(fmt.tprintf("%s/sitemap.xml", output_dir), sitemap) + // Copy static assets (avatar, favicon, etc.) + copy_static_assets(content_path, output_dir) + total := len(pages) + 1 if !has_home { total += 1