mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
build: Switched site build from Hugo to Thor.
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user