diff options
| -rwxr-xr-x | generate | 4 | ||||
| -rw-r--r-- | index.template.html | 4 | ||||
| -rw-r--r-- | utils/fractal_tree/script.js | 2 | ||||
| -rw-r--r-- | utils/sierpinski_triangle/script.js | 2 |
4 files changed, 6 insertions, 6 deletions
@@ -37,7 +37,7 @@ base_template < school.template.html | base_template_link 'style.css' > school.html # Generate blog posts -for post_path in "$(find "$blog_path" -name '*.md')" +for post_path in "$blog_path"/*.md do post_dst_path=$(echo "$post_path" | sed 's_.md_.html_') @@ -68,5 +68,5 @@ do sed -i'' "/<!-- UTILSINDEX -->/ a\ <li><a href=\"$util_path\">$title</a></li>" index.html - echo "Generated utility at $util_path" + echo "Generated utility at $util_path/index.html" done diff --git a/index.template.html b/index.template.html index 9d9c007..baa1638 100644 --- a/index.template.html +++ b/index.template.html @@ -7,12 +7,12 @@ <hr/> -<h2>Blog articles</h2> +<h2>Blog posts</h2> <ul> <!-- BLOGINDEX --> </ul> -<h2>Utils</h2> +<h2>Utilities</h2> <ul> <li><a href="https://chat.cacharle.xyz">chat</a></li> <!-- UTILSINDEX --> diff --git a/utils/fractal_tree/script.js b/utils/fractal_tree/script.js index b9c4b0a..21a3d26 100644 --- a/utils/fractal_tree/script.js +++ b/utils/fractal_tree/script.js @@ -43,7 +43,7 @@ depth_input.addEventListener("input", draw) angle_input.addEventListener("input", draw) function updateCanvas() { - const canvas_size = Math.min(window.innerWidth, window.innerHeight - 200) + const canvas_size = Math.min(window.innerWidth, window.innerHeight - 255) canvas.width = canvas_size canvas.height = canvas_size context.strokeStyle = "#DDDDDD" diff --git a/utils/sierpinski_triangle/script.js b/utils/sierpinski_triangle/script.js index c4d7efe..97e7e76 100644 --- a/utils/sierpinski_triangle/script.js +++ b/utils/sierpinski_triangle/script.js @@ -40,7 +40,7 @@ function draw() { depth_input.addEventListener("input", draw) function updateCanvas() { - const canvas_size = Math.min(window.innerWidth, window.innerHeight - 200) + const canvas_size = Math.min(window.innerWidth, window.innerHeight - 255) canvas.width = canvas_size canvas.height = canvas_size context.strokeStyle = "#DDDDDD" |
