build: Switched site build from Hugo to Thor.

This commit is contained in:
Spencer Brower
2026-07-11 10:30:17 -04:00
parent 177117e471
commit c3efbf80f0
2 changed files with 3 additions and 5 deletions
-2
View File
@@ -3,8 +3,6 @@
- Look at the source for 3 template languages that support mustache syntax, - 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 and see how they implement the tempaltes, then pick the best one. One of them
should be Hugo / go. should be Hugo / go.
- [ ] Deal with the favicon
- [ ] Icon support.
- [ ] robots.txt? - [ ] robots.txt?
- [ ] Evaluate Tufte CSS — borrow sidenote CSS or replace TailwindCSS entirely - [ ] 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 - Option B: Steal Tufte's sidenote/margin-note CSS (adapt for dark theme), keep TailwindCSS
+3 -3
View File
@@ -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) // Render individual content pages (skip home)
for page in pages { for page in pages {
if page.type == .Home { 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) sitemap := generate_sitemap(pages, base_url)
write_file(fmt.tprintf("%s/sitemap.xml", output_dir), sitemap) 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 total := len(pages) + 1
if !has_home { if !has_home {
total += 1 total += 1