From ada45c1bea838e5f38f24fe37e558c1b7959ae28 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 16 Apr 2020 20:40:45 +0530 Subject: redo pandoc commands to print fragments only --- docs/posts/static_sites_with_bash/index.html | 75 +++------------------------- 1 file changed, 7 insertions(+), 68 deletions(-) (limited to 'docs/posts/static_sites_with_bash/index.html') diff --git a/docs/posts/static_sites_with_bash/index.html b/docs/posts/static_sites_with_bash/index.html index fff53dc..67eaf12 100644 --- a/docs/posts/static_sites_with_bash/index.html +++ b/docs/posts/static_sites_with_bash/index.html @@ -2,6 +2,7 @@ + @@ -37,71 +38,7 @@ Static Sites With Bash
- - - - - - - static_sites_with_bash - - - - -

After going through a bunch of static site generators (pelican, hugo, vite), I decided to roll my own. If you are more of the ‘show me the code’ kinda guy, here you go.

+

After going through a bunch of static site generators (pelican, hugo, vite), I decided to roll my own. If you are more of the ‘show me the code’ kinda guy, here you go.

Text formatting

I chose to write in markdown, and convert to html with lowdown.

Directory structure

@@ -128,13 +65,15 @@ echo "https://u.peppe.rs/$id"

Templating

generate.sh brings the above bits and pieces together (with some extra cruft to avoid javascript). It uses sed to produce nice titles from the file names (removes underscores, title-case), and date(1) to add the date to each post listing!

- -
- Hi. Subscribe + Hi. +

I'm Akshay, I go by nerd or nerdypepper on the internet.

I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer. -- cgit v1.2.3