From a42a63faac78072fd8f1f4d772963d49b5fd28d2 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Fri, 13 Sep 2024 10:51:15 -0700 Subject: [PATCH] gen script --- gen.sh | 1 - public/404.html | 1 - public/first-post.html | 20 ++++++++++++++++++++ public/index.html | 11 +---------- public/post.html | 30 ------------------------------ 5 files changed, 21 insertions(+), 42 deletions(-) mode change 100644 => 100755 gen.sh delete mode 100644 public/404.html create mode 100644 public/first-post.html delete mode 100644 public/post.html diff --git a/gen.sh b/gen.sh old mode 100644 new mode 100755 index 181b860..bf763de --- a/gen.sh +++ b/gen.sh @@ -2,4 +2,3 @@ cd content find . -type d -exec mkdir -p ../public/{} \; find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -f markdown -t html5 --template ../templates/page.html --css index.css -o "../public/$(basename ${0%.md}.html)"' {} \; -pandoc content/index.md -f markdown -t html5 --template templates/page.html --css index.css -o public/blog/index.html diff --git a/public/404.html b/public/404.html deleted file mode 100644 index 10af2fe..0000000 --- a/public/404.html +++ /dev/null @@ -1 +0,0 @@ -Not found diff --git a/public/first-post.html b/public/first-post.html new file mode 100644 index 0000000..7c42339 --- /dev/null +++ b/public/first-post.html @@ -0,0 +1,20 @@ + + + + + + + + first-post + + + + + + + diff --git a/public/index.html b/public/index.html index b599784..1431658 100644 --- a/public/index.html +++ b/public/index.html @@ -16,15 +16,6 @@ Contact

Michael Thomson

-

this is a test

- -

this is a quote:

-
int main()
-{
-    return 0;
-}
+ diff --git a/public/post.html b/public/post.html deleted file mode 100644 index 9315065..0000000 --- a/public/post.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Hello, World! - - - - -

Hello, World!

-

Michael

-

2024-09-13

-

this is a test - oh yeah

-

this is a quote:

-
-

sdfdsfsdfdsfdsfdsfds sfdsfdsfsfdsfds

-
-
int main()
-{
-    return 0;
-}
- -