aboutsummaryrefslogtreecommitdiff
path: root/posts/static_sites_with_bash.md
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-04-16 09:11:04 +0100
committerAkshay <[email protected]>2020-04-16 09:11:04 +0100
commit2fda85fccb23212747828d0f3f55ae16e5ff956b (patch)
tree40928c8fda059b5a946bde16527ce7cd220b4605 /posts/static_sites_with_bash.md
parent2a778912251874f9b808f82e61244efcd12210aa (diff)
reformat with right dates
Diffstat (limited to 'posts/static_sites_with_bash.md')
-rw-r--r--posts/static_sites_with_bash.md4
1 files changed, 2 insertions, 2 deletions
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
15go into `posts/`, get converted into html, and end up in 15go into `posts/`, get converted into html, and end up in
16`docs/index.html`, something like this: 16`docs/index.html`, something like this:
17 17
18``` 18```bash
19posts=$(ls -t ./posts) # chronological order! 19posts=$(ls -t ./posts) # chronological order!
20for f in $posts; do 20for f in $posts; do
21 file="./posts/"$f # `ls` mangled our file paths 21 file="./posts/"$f # `ls` mangled our file paths
@@ -31,7 +31,7 @@ Most static site generators recommend dropping image
31assets into the site source itself. That does have it's 31assets into the site source itself. That does have it's
32merits, but I prefer hosting images separately: 32merits, but I prefer hosting images separately:
33 33
34``` 34```bash
35# strip file extension 35# strip file extension
36ext="${1##*.}" 36ext="${1##*.}"
37 37