Compare commits
No commits in common. "0fc4e6180beafec67ecd57b7a5b94bc7cc4f8880" and "d83fc3f75a0c53e4c4997ac9380f4f264c063e2e" have entirely different histories.
0fc4e6180b
...
d83fc3f75a
1
gen.odin
1
gen.odin
@ -43,7 +43,6 @@ 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, arena_alloc)
|
generate_blog_md_file(directory)
|
||||||
|
|
||||||
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,9 +60,8 @@ 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) //WRITE PAGE
|
os.write_string(file, html)
|
||||||
|
|
||||||
switch trimmed_filename {
|
switch trimmed_filename {
|
||||||
case "index":
|
case "index":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user