From caa0dcc8c629d99ae4951f9b6c0ea61e599d3859 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 26 Jan 2020 12:00:55 +0530 Subject: rework styles, better kerning --- posts/static_sites_with_bash.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'posts') diff --git a/posts/static_sites_with_bash.md b/posts/static_sites_with_bash.md index d87cefd..2a1cc92 100644 --- a/posts/static_sites_with_bash.md +++ b/posts/static_sites_with_bash.md @@ -5,10 +5,12 @@ After going through a bunch of static site generators my own. If you are more of the 'show me the code' kinda guy, [here](https://github.com/nerdypepper/site) you go. -**Text formatting**: I chose to write in markdown, and convert +### Text formatting +I chose to write in markdown, and convert to html with [lowdown](https://kristaps.bsd.lv/lowdown/). -**Directory structure**: I host my site on GitHub pages, so +### Directory structure +I host my site on GitHub pages, so `docs/` has to be the entry point. Markdown formatted posts go into `posts/`, get converted into html, and end up in `docs/index.html`, something like this: @@ -24,7 +26,8 @@ for f in $posts; do done ``` -**Assets**: Most static site generators recommend dropping image +### Assets +Most static site generators recommend dropping image assets into the site source itself. That does have it's merits, but I prefer hosting images separately: @@ -41,7 +44,7 @@ scp -P 443 "$1" emerald:files/"$id" echo "https://files.nerdypepper.tech/$id" ``` -**Templating**: +### Templating [`generate.sh`](https://github.com/NerdyPepper/site/blob/master/generate.sh) brings the above bits and pieces together (with some extra cruft to avoid javascript). It uses `sed` to produce nice -- cgit v1.2.3