From 81291a2c8f782ed14b42ec27ae8e0f3a7fbac095 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 9 May 2023 12:33:37 -0500 Subject: [PATCH] Fix stuff --- blog/marlin-boot-animations.html | 2 +- index.html | 2 +- md2html.py | 3 ++- portfolio.html | 2 +- resume.html | 2 +- stack.html | 2 +- template.html | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/blog/marlin-boot-animations.html b/blog/marlin-boot-animations.html index 6022c6b..e204ea0 100644 --- a/blog/marlin-boot-animations.html +++ b/blog/marlin-boot-animations.html @@ -3,7 +3,7 @@ Marlin Boot Animations - +

Marlin Boot Animations

diff --git a/index.html b/index.html index 82c3ba2..2a02a97 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ askiiart's site - +

askiiart's site

diff --git a/md2html.py b/md2html.py index e882687..2ad17d2 100755 --- a/md2html.py +++ b/md2html.py @@ -2,8 +2,9 @@ import os from pathlib import Path dir = os.path.dirname(__file__) +print(dir) os.chdir(dir) files = [str(item)[:-3] for item in Path(dir).rglob('*.md')] for item in files: - os.system(f'pandoc -f markdown-smart --data-dir . --template template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"') + os.system(f'pandoc -f markdown-smart --data-dir . --template {dir}/template.html -t html -o {item}.html {item}.md --metadata title=\"$(grep -m 1 -oP \'(?<=^# ).*\' {item}.md | cat)\"') diff --git a/portfolio.html b/portfolio.html index 373a601..aab095b 100755 --- a/portfolio.html +++ b/portfolio.html @@ -3,7 +3,7 @@ Portfolio - +

Portfolio

diff --git a/resume.html b/resume.html index 89d12a1..0eccae0 100755 --- a/resume.html +++ b/resume.html @@ -3,7 +3,7 @@ Resume - +

Resume

diff --git a/stack.html b/stack.html index f526f42..47f1846 100755 --- a/stack.html +++ b/stack.html @@ -3,7 +3,7 @@ My Stack - +

My Stack

diff --git a/template.html b/template.html index e29f71d..f38ef8c 100755 --- a/template.html +++ b/template.html @@ -3,7 +3,7 @@ $title$ - + $body$