Compare commits
2 Commits
d83fc3f75a
...
0fc4e6180b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fc4e6180b | ||
|
|
ff7c60bded |
1
gen.odin
1
gen.odin
@ -43,6 +43,7 @@ generate_blog_md_file :: proc(path: string, allocator := context.allocator) {
|
|||||||
if trim_b == "index_non_blank" {continue}
|
if trim_b == "index_non_blank" {continue}
|
||||||
if trim_b == "test" {continue}
|
if trim_b == "test" {continue}
|
||||||
if trim_b == "test_blog" {continue}
|
if trim_b == "test_blog" {continue}
|
||||||
|
if strings.starts_with(trim_b, "!") {continue}
|
||||||
append(&blog_list, blog)
|
append(&blog_list, blog)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ main :: proc() {
|
|||||||
|
|
||||||
start := time.tick_now() //start timer for footer
|
start := time.tick_now() //start timer for footer
|
||||||
|
|
||||||
generate_blog_md_file(directory)
|
generate_blog_md_file(directory, arena_alloc)
|
||||||
|
|
||||||
md_files := walk_tree_and_get_md_names(directory, arena_alloc)
|
md_files := walk_tree_and_get_md_names(directory, arena_alloc)
|
||||||
for file, i in md_files {
|
for file, i in md_files {
|
||||||
@ -60,8 +60,9 @@ main :: proc() {
|
|||||||
if file_err != nil {
|
if file_err != nil {
|
||||||
fmt.eprintfln("ERROR: Could not open file %s: %s", file, os.error_string(file_err))
|
fmt.eprintfln("ERROR: Could not open file %s: %s", file, os.error_string(file_err))
|
||||||
}
|
}
|
||||||
|
|
||||||
write_prefixs_to_html_file(file)
|
write_prefixs_to_html_file(file)
|
||||||
os.write_string(file, html)
|
os.write_string(file, html) //WRITE PAGE
|
||||||
|
|
||||||
switch trimmed_filename {
|
switch trimmed_filename {
|
||||||
case "index":
|
case "index":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user