diff options
author | Akshay <[email protected]> | 2020-04-16 09:11:04 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-04-16 09:11:04 +0100 |
commit | 2fda85fccb23212747828d0f3f55ae16e5ff956b (patch) | |
tree | 40928c8fda059b5a946bde16527ce7cd220b4605 /posts/static_sites_with_bash.md | |
parent | 2a778912251874f9b808f82e61244efcd12210aa (diff) |
reformat with right dates
Diffstat (limited to 'posts/static_sites_with_bash.md')
-rw-r--r-- | posts/static_sites_with_bash.md | 4 |
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 | |||
15 | go into `posts/`, get converted into html, and end up in | 15 | go 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 |
19 | posts=$(ls -t ./posts) # chronological order! | 19 | posts=$(ls -t ./posts) # chronological order! |
20 | for f in $posts; do | 20 | for 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 | |||
31 | assets into the site source itself. That does have it's | 31 | assets into the site source itself. That does have it's |
32 | merits, but I prefer hosting images separately: | 32 | merits, but I prefer hosting images separately: |
33 | 33 | ||
34 | ``` | 34 | ```bash |
35 | # strip file extension | 35 | # strip file extension |
36 | ext="${1##*.}" | 36 | ext="${1##*.}" |
37 | 37 | ||