added hljs to pages for code highlights. pending solution
This commit is contained in:
parent
10d383e4c2
commit
1f44124319
@ -12,12 +12,15 @@ UTF8_PREFIX :: "<meta http-equiv=\"content-type\" content=\"text/html; charset=u
|
||||
CSS_PREFIX :: "<head><link rel=\"stylesheet\" href=\"./css/style.css\">\n<title>Simon Kellet</title>"
|
||||
FAVICON_PREFIX :: "<link rel=\"icon\" type=\"image\\x-icon\" href=\"/imgs/favicon.ico\">\n"
|
||||
MASTODON_PREFIX :: "<a rel=me href=https://linuxrocks.online/@simonkellet></a>\n"
|
||||
HIGHLIGHT_JS_PREFIX :: "<script type=\"text/javascript\" src=\"https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/highlightjs-odinlang@1.4.0/dist/odin.min.js\"></script>\n\n<script type=\"text/javascript\">\n hljs.highlightAll();\n</script>"
|
||||
|
||||
|
||||
write_prefixs_to_html_file :: proc(file: ^os.File) {
|
||||
os.write_string(file, UTF8_PREFIX)
|
||||
os.write_string(file, CSS_PREFIX)
|
||||
os.write_string(file, FAVICON_PREFIX)
|
||||
os.write_string(file, MASTODON_PREFIX)
|
||||
os.write_string(file, HIGHLIGHT_JS_PREFIX)
|
||||
}
|
||||
|
||||
walk_tree_and_get_md_names :: proc(path: string, allocator := context.allocator) -> [dynamic]string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user