diff --git a/content/blog/first-post.md b/content/blog/first-post.md new file mode 100644 index 0000000..e69de29 diff --git a/content/index.md b/content/index.md new file mode 100644 index 0000000..bd9633a --- /dev/null +++ b/content/index.md @@ -0,0 +1,5 @@ +--- +title: Michael Thomson +--- + + diff --git a/content/post.md b/content/post.md deleted file mode 100644 index c12ab36..0000000 --- a/content/post.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Hello, World! -author: Michael -date: 2024-09-13 -abstract: This is my first post ---- - -this is a test -- oh yeah - -this is a quote: - -> sdfdsfsdfdsfdsfdsfds -> sfdsfdsfsfdsfds -```c -int main() -{ - return 0; -} -``` diff --git a/gen.sh b/gen.sh new file mode 100644 index 0000000..181b860 --- /dev/null +++ b/gen.sh @@ -0,0 +1,5 @@ +#!/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)"' {} \; +pandoc content/index.md -f markdown -t html5 --template templates/page.html --css index.css -o public/blog/index.html diff --git a/public/index.css b/public/index.css index 44375b3..afebf09 100644 --- a/public/index.css +++ b/public/index.css @@ -1,10 +1,34 @@ +:root { + --bg: #0d1017; + --fg: #ffffff; + --link: #ff8f40; +} html { - background: #0D1017; - color: #BFBDB6; + background: var(--bg); + color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif; + font-size: 16px; } body { max-width: 760px; margin: auto; } + +a { + text-decoration: none; + color: var(--link); +} + +a:hover { + text-decoration: underline; +} + +nav { + border-bottom: 1px dotted var(--link); + padding: 1rem 0 1rem 0; +} + +nav a { + margin-right: 0.25rem; +} diff --git a/public/index.html b/public/index.html index a27212b..b599784 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,30 @@ - + + + + Michael Thomson - - - + - -

Michael Thomson

+ +

Michael Thomson

+

this is a test

+ +

this is a quote:

+
int main()
+{
+    return 0;
+}
- diff --git a/public/post.html b/public/post.html index 1fffc33..9315065 100644 --- a/public/post.html +++ b/public/post.html @@ -7,23 +7,22 @@ -

Michael Thomson

Hello, World!

Michael

2024-09-13

- -

this is a test - oh yeah

-

this is a quote:

-
-

sdfdsfsdfdsfdsfdsfds sfdsfdsfsfdsfds

-
-
int main()
+    

this is a test - oh yeah

+

this is a quote:

+
+

sdfdsfsdfdsfdsfdsfds sfdsfdsfsfdsfds

+
+
int main()
 {
     return 0;
 }
diff --git a/templates/post.html b/templates/page.html similarity index 58% rename from templates/post.html rename to templates/page.html index b2e0140..e7daef1 100644 --- a/templates/post.html +++ b/templates/page.html @@ -1,6 +1,10 @@ + + + + $for(author-meta)$ $endfor$ @@ -13,14 +17,12 @@ $for(css)$ $endfor$ -
-

Michael Thomson

- -
+ $if(title)$

$title$

$endif$