paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b7cf0bba38883433f7516b22990db6ebc9f5fc59
parent b11ba280f423f67b186c847b53e7ee2952ce7642
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sun, 24 May 2020 00:15:27 -0400

Update static site gen blog post with new info

Diffstat:
Mpages/blog/rewriting-my-static-site-generator.md | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/pages/blog/rewriting-my-static-site-generator.md b/pages/blog/rewriting-my-static-site-generator.md @@ -9,7 +9,7 @@ <div class="byline"> <b>Written By:</b> Jake Bauer | <b>Posted:</b> 2020-05-22 | - <b>Last Updated:</b> 2020-05-22 + <b>Last Updated:</b> 2020-05-24 </div> After a brief, two day hiatus in posting to refill my creative juices, I'm back @@ -41,6 +41,12 @@ POSIX-compliant so it is as portable as possible. My script used to require bash but now it should work with any POSIX-compliant shell. It should also now only be using POSIX-compliant flags in POSIX programs. +_**Update:** After further testing, I've switched from using `tput` to ANSI +escape codes for colours, added the `-e` flag to the `sed` commands, and added a +newline everytime I use the `a` command with `sed`. These changes were required +to get the script to work on FreeBSD. As long as pandoc is available on a +system, the script should now be portable between all *nix systems (I hope)._ + This new script clocks in at 7207 bytes, 235 total lines, and 180 source lines of code as of the time of writing. This is in comparison to the old script's 10812 bytes, 253 total lines, and 152 source lines of code. This is mostly due