From 1c9c873a6b0f60fd6a06b77b7f487e03555237c3 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 19 Jul 2020 14:36:15 -0400 Subject: [PATCH] content: Migrate to Markdown posts on top of templating script Previously, I had whipped up a small templating script, tm.pl, which would look for comments and expand them. This allowed me to make edits to the general style of the site without changing all the content. However, I begrudgingly accepted that I needed a faster way to write posts. Hand writing HTML is quite a pain... so I gave up some of my stylistic freedoms that come with writing HTML and added the original Markdown.pl script to the build pipeline (p5-Text-Markdown package on OpenBSD). Now, the markdown is translated to HTML before the tm.pl step, giving me the best of both worlds. The only minor sacrifice was the "on hover" underlines in the Thoughts page. Maybe I'll add them back, but it doesn't look awful as is. --- bin/build.sh | 4 ++-- content/03-24-20-domain-name.html | 32 -------------------------------- content/03-24-20-domain-name.md | 25 +++++++++++++++++++++++++ content/07-13-20-blm.html | 14 -------------- content/07-13-20-blm.md | 11 +++++++++++ content/12-19-19-a-new-hope.html | 17 ----------------- content/12-19-19-a-new-hope.md | 14 ++++++++++++++ content/index.html | 21 --------------------- content/index.md | 17 +++++++++++++++++ content/style.css | 26 ++++++++------------------ content/thoughts.html | 20 -------------------- content/thoughts.md | 11 +++++++++++ 12 files changed, 88 insertions(+), 124 deletions(-) delete mode 100644 content/03-24-20-domain-name.html create mode 100644 content/03-24-20-domain-name.md delete mode 100644 content/07-13-20-blm.html create mode 100644 content/07-13-20-blm.md delete mode 100644 content/12-19-19-a-new-hope.html create mode 100644 content/12-19-19-a-new-hope.md delete mode 100644 content/index.html create mode 100644 content/index.md delete mode 100644 content/thoughts.html create mode 100644 content/thoughts.md diff --git a/bin/build.sh b/bin/build.sh index 7347cea..43f7e2c 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -1,6 +1,6 @@ #!/bin/sh mkdir -p build cp content/*.css build -for f in content/*.html; do - ./bin/tm.pl $f > build/`basename $f` +for f in content/*.md; do + Markdown.pl $f | ./bin/tm.pl > build/`basename $f md`html done diff --git a/content/03-24-20-domain-name.html b/content/03-24-20-domain-name.html deleted file mode 100644 index 1dabe09..0000000 --- a/content/03-24-20-domain-name.html +++ /dev/null @@ -1,32 +0,0 @@ - - -

Mar. 24, 2020: What's in a (domain) name?

-

-I went through a phase this week of really wanting `karle.[original-tld]`. -Not for a business. Not for boosting my own webpage (it doesn't really -have much). Just for me. -

- -

The results were... disheartening.

- - - -

So here we are. Looks like karle.co for at least a little longer.

- - diff --git a/content/03-24-20-domain-name.md b/content/03-24-20-domain-name.md new file mode 100644 index 0000000..1dc994a --- /dev/null +++ b/content/03-24-20-domain-name.md @@ -0,0 +1,25 @@ + + +### Mar. 24, 2020: What's in a (domain) name? + +I went through a phase this week of really wanting `karle.[original-tld]`. +Not for a business. Not for boosting my own webpage (it doesn't really +have much). Just for me. + +The results were... disheartening. + +* **karle.org:**
Registered since 2004, no website, just an email +DNS record. WHOIS guard ensures I can't even reach out to who owns it. + +* **karle.com:**
For sale by owner on Uniregistry. Ok. Inquired. +Owner wants a "serious 5 figure offer". Next! + +* **karle.net:**
Owned by [RealNames](https://realnames.com), +a business seemingly centered around buying lastname.net domains and +charging people like me to set up an email. Almost brilliant enough of a +business to make me forgive their scumminess. _Almost_. Nary an +option to buy it. + +So here we are. Looks like karle.co for at least a little longer. + + diff --git a/content/07-13-20-blm.html b/content/07-13-20-blm.html deleted file mode 100644 index d4e8e2e..0000000 --- a/content/07-13-20-blm.html +++ /dev/null @@ -1,14 +0,0 @@ - - -

July 13, 2020: Black Lives Matter

-

-I meant to post about this earlier, but it's better late than never. -

- -

-It's become abundantly clear to me that we need serious structural changes in -our country. I want to raise my voice in solidarity to say that -Black Lives Matter. -

- - diff --git a/content/07-13-20-blm.md b/content/07-13-20-blm.md new file mode 100644 index 0000000..49f24b6 --- /dev/null +++ b/content/07-13-20-blm.md @@ -0,0 +1,11 @@ + + +### July 13, 2020: Black Lives Matter + +I meant to post about this earlier, but it's better late than never. + +It's become abundantly clear to me that we need serious structural changes in +our country. I want to raise my voice in solidarity to say that +[Black Lives Matter](https://blacklivesmatter.com). + + diff --git a/content/12-19-19-a-new-hope.html b/content/12-19-19-a-new-hope.html deleted file mode 100644 index 6eeb022..0000000 --- a/content/12-19-19-a-new-hope.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

Dec. 19, 2019: A New Hope

-

-Toying with the thought of starting a website/blog. -

-

-Exploring my hosting options and pleasantly surprised that -Fastmail has free static site hosting! -

-

-Inspired by Jeff Huang's article on websites -Designed to Last and -a general desire for a simpler web. -

- - diff --git a/content/12-19-19-a-new-hope.md b/content/12-19-19-a-new-hope.md new file mode 100644 index 0000000..574cdf8 --- /dev/null +++ b/content/12-19-19-a-new-hope.md @@ -0,0 +1,14 @@ + + +### Dec. 19, 2019: A New Hope + +Toying with the thought of starting a website/blog. + +Exploring my hosting options and pleasantly surprised that +[Fastmail](https://fastmail.com) has free static site hosting! + +Inspired by Jeff Huang's article on websites +[Designed to Last](https://jeffhuang.com/designed_to_last) and +a general desire for a simpler web. + + diff --git a/content/index.html b/content/index.html deleted file mode 100644 index 6c27506..0000000 --- a/content/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - -

About me:

-

-Hi, I'm Alex! I'm a software engineer living in the Boston area. -

- -

-I'm currently interested in free Operating Systems (particularly Linux -and OpenBSD), SCM systems (mostly git), and developer tooling. -

- -
-

Find me online:

- - - - diff --git a/content/index.md b/content/index.md new file mode 100644 index 0000000..9134328 --- /dev/null +++ b/content/index.md @@ -0,0 +1,17 @@ + + +### About me: + +Hi, I'm Alex! I'm a software engineer living in the Boston area. + +I'm currently interested in free Operating Systems (particularly Linux +and OpenBSD), SCM systems (mostly git), and developer tooling. + +
+ +### Find me online: + +* GitHub: [@akarle](https://github.com/akarle) +* Email: alex AT this-domain + + diff --git a/content/style.css b/content/style.css index d62b5cc..0aea6ed 100644 --- a/content/style.css +++ b/content/style.css @@ -6,6 +6,14 @@ body { font-size: 1em; } +ul { + padding-left: 30px; +} + +code { + font-size: 1.3em; +} + @media only screen and (min-width: 992px) { #content { width: 60%; @@ -37,15 +45,6 @@ a:visited { color: #033a4a; } -.new-post:link { - text-decoration: none; -} - -.new-post:hover { - text-decoration: underline; -} - - header { text-align: center; margin-bottom: 3em; @@ -60,12 +59,3 @@ header { color: #3f3f3f; text-decoration: underline; } - -h1.path { - margin-top: 0px; - margin-bottom: 0px; -} - -ul.find-me { - padding-left: 1.5em; -} diff --git a/content/thoughts.html b/content/thoughts.html deleted file mode 100644 index e6f3208..0000000 --- a/content/thoughts.html +++ /dev/null @@ -1,20 +0,0 @@ - - -

A collection of thoughts.

-

(Because I couldn't commit to calling it a blog)

- - - - diff --git a/content/thoughts.md b/content/thoughts.md new file mode 100644 index 0000000..867d63a --- /dev/null +++ b/content/thoughts.md @@ -0,0 +1,11 @@ + + +### A collection of thoughts. + +

(Because I couldn't commit to calling it a blog)

+ +* [Jul. 13, 2020: Black Lives Matter](07-13-20-blm.html) +* [Mar. 24, 2020: What's in a (domain) name?](03-24-20-domain-name.html) +* [Dec. 19, 2019: A New Hope](12-19-19-a-new-hope.html) + + -- libgit2 1.1.1