diff --git a/content/blog/first-post.md b/content/blog/first-post.md index e69de29..5350624 100644 --- a/content/blog/first-post.md +++ b/content/blog/first-post.md @@ -0,0 +1,15 @@ +--- +title: First Post +--- + +This is my first post + +Here's some code! + +```c +int main() +{ + printf("Hello, World!"); + return 0; +} +``` diff --git a/content/index.md b/content/index.md index bd9633a..942bd73 100644 --- a/content/index.md +++ b/content/index.md @@ -2,4 +2,7 @@ title: Michael Thomson --- +Welcome to my site! not much here yet. +## Recent blog posts +- [First Blog Post](/blog/first-post) diff --git a/gen.sh b/gen.sh index bf763de..a74b57c 100755 --- a/gen.sh +++ b/gen.sh @@ -1,4 +1,4 @@ #!/bin/bash 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)"' {} \; +find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -f markdown -t html5 --template ../templates/page.html --css index.css -o "../public/${0%.md}.html"' {} \; diff --git a/public/blog/first-post.html b/public/blog/first-post.html new file mode 100644 index 0000000..18d6557 --- /dev/null +++ b/public/blog/first-post.html @@ -0,0 +1,28 @@ + + +
+ + + + +This is my first post
+Here’s some code!
+int main()
+{
+("Hello, World!");
+ printfreturn 0;
+ }
Welcome to my site! not much here yet.
+