28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
Hugo? More like, No-Go
|
|
|
|
Driven largely by a staunch refusal to learn anything too new, I've decided to
|
|
try my foolish hand at writing one of these "static site generators". That is
|
|
to say, I've decided to pretend a task is very very simple, and pray that my
|
|
needs never outgrow my mediocre bash skills.
|
|
|
|
Basically, I'm <i>tired</i> of writing brackety tags everywhere, so I have a
|
|
little converter from plain text to HTML. There's a template.html file and an
|
|
index.template.html file. The first is the basis for individual posts, and the
|
|
second is used to generate a list of links to each post.
|
|
|
|
This script is incredibly naive. It more or less copy pastes the text in a
|
|
given post file straight into the body of the template.html file. But it does
|
|
use the first line of the file as both the header and the name of the link,
|
|
which is kinda fun. And I can just add HTML tags wherever I want, if I do feel
|
|
like adding some <i>flair</i>.
|
|
|
|
At some point, I might try to convert this into a real project with my dear
|
|
friend Rust, but for now that's 2 hard.
|
|
|
|
The best part of this whole thing is that I don't even have a way to host it,
|
|
yet. So for now, write.as, whoo!
|
|
|
|
#100DaysToOffload
|
|
|
|
2020-09-17
|