feat: Added sitemap and RSS feed.

This commit is contained in:
Spencer Brower
2026-07-10 20:36:06 -04:00
parent c78f3b50b6
commit 07a262c3a1
4 changed files with 165 additions and 4 deletions
+5 -1
View File
@@ -20,7 +20,7 @@ main :: proc() {
pages := walk_content(opt.content_dir, opt.drafts)
render_site(pages, opt.content_dir, opt.output_dir)
render_site(pages, opt.content_dir, opt.output_dir, opt.base_url)
}
load_default_options :: proc(opt: ^Options) {
@@ -31,6 +31,10 @@ load_default_options :: proc(opt: ^Options) {
if opt.output_dir == "" {
opt.output_dir = "./public"
}
if opt.base_url == "" {
opt.base_url = "http://localhost:8080"
}
}
print_summary :: proc(pages: []Page) {