mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Added sitemap and RSS feed.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user