diff --git a/public/colours.css b/public/css/colours.css similarity index 100% rename from public/colours.css rename to public/css/colours.css diff --git a/public/css.css b/public/css/css.css similarity index 94% rename from public/css.css rename to public/css/css.css index c256e10..9401841 100644 --- a/public/css.css +++ b/public/css/css.css @@ -1,5 +1,5 @@ @import url(https://fonts.bunny.net/css?family=chivo-mono:500); -@import url(/colours.css); +@import url(/css/colours.css); code { background: var(--background-text); @@ -87,7 +87,7 @@ body { aspect-ratio: 1/1; transform-origin: top; - transform: scale(150%) rotate(-20deg) translateY(-25%); + transform: scale(150%) rotate(-20deg) translate(-15%, -15%); align-content: center; text-align: center; diff --git a/public/index.html b/public/index.html index 5189848..0dddade 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@ - + @@ -46,7 +46,7 @@
- + diff --git a/public/code_highlighter.js b/public/js/code_highlighter.js similarity index 94% rename from public/code_highlighter.js rename to public/js/code_highlighter.js index c8ee430..ff3690c 100644 --- a/public/code_highlighter.js +++ b/public/js/code_highlighter.js @@ -35,6 +35,9 @@ const maps = { "std::string", "std::unique_ptr", "char", + "public", + "private", + "protected" ], } }; diff --git a/public/main.js b/public/js/main.js similarity index 100% rename from public/main.js rename to public/js/main.js diff --git a/public/md2html.js b/public/js/md2html.js similarity index 97% rename from public/md2html.js rename to public/js/md2html.js index df197c6..7e25c74 100644 --- a/public/md2html.js +++ b/public/js/md2html.js @@ -254,7 +254,7 @@ const tokens2html = (tokens) => { output += "
" break; case "image": - output += `

${token.alt}
${token.title}

`; + output += `

${token.alt}
${token.title}

`; break case "ul": console.log(token); diff --git a/public/posts/index.html b/public/posts/index.html index 1323957..80cb3ba 100644 --- a/public/posts/index.html +++ b/public/posts/index.html @@ -2,7 +2,7 @@ - + @@ -22,7 +45,9 @@
-

SpoodyThe.One

+ +

SpoodyThe.One

+

Loading...

@@ -33,9 +58,9 @@
- - - + + + diff --git a/public/posts/openbirch.md b/public/posts/openbirch.md index d9d0264..7e78294 100644 --- a/public/posts/openbirch.md +++ b/public/posts/openbirch.md @@ -2,4 +2,10 @@ Functions Vectors Evaluate Isolate Solve Matrix Tensor Calculus Derivation Limit # Openbirch Cool fucking cas tool. -![image of openbirch](/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") +![image of openbirch](/posts/openbirch/openbirch.png "Cool image of the cool fucking cas tool") diff --git a/public/posts/openbirch/openbirch.png b/public/posts/openbirch/openbirch.png new file mode 100644 index 0000000..27833da Binary files /dev/null and b/public/posts/openbirch/openbirch.png differ diff --git a/src/main.rs b/src/main.rs index 7b02a35..2898c81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,13 +37,12 @@ impl Request { method: match parts.next().expect("Invalid request") { "GET" => RequestMethod::GET, "POST" => RequestMethod::POST, - _ => panic!("Unknown method"), + _ => panic!("Unknown method"), // TODO: fix PUT crashing entire website }, path: Some( parts .next() .expect("Invalid request") - .to_string() .split("?") .next() .unwrap()