From 2fda85fccb23212747828d0f3f55ae16e5ff956b Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 16 Apr 2020 13:41:04 +0530 Subject: reformat with right dates --- posts/static_sites_with_bash.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posts/static_sites_with_bash.md') diff --git a/posts/static_sites_with_bash.md b/posts/static_sites_with_bash.md index 62e43d8..1b6b2ec 100644 --- a/posts/static_sites_with_bash.md +++ b/posts/static_sites_with_bash.md @@ -15,7 +15,7 @@ I host my site on GitHub pages, so go into `posts/`, get converted into html, and end up in `docs/index.html`, something like this: -``` +```bash posts=$(ls -t ./posts) # chronological order! for f in $posts; do file="./posts/"$f # `ls` mangled our file paths @@ -31,7 +31,7 @@ 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: -``` +```bash # strip file extension ext="${1##*.}" -- cgit v1.2.3