Recent Post - 2023-01-06
+How I Generate My RSS Feed
+I only just now started supplying an RSS feed to you fine people! You + can subscribe to it at www.senders.io/blog/feed.rss!
+I decided rather than manually generating the file contents I’d hook + into my pre-existing publish scripts to be able to generate the RSS + file.
+Publishing blog posts - shell scripts ftw
+In My Markdown -> HTML Setup I + touch on how I publish my markdown files into HTML for this blog. But + what I don’t really touch on is the shell scripts that tie the + whole process together.
+What I have is two, now three, scripts that feed the whole + process:
+-
+
publish-blog.sh
- the main script
+ compile-md.sh
- generates the HTML output
+ update-feed.sh
- generates/appends the RSS feed
+
The update-feed.sh
script is the new one I just
+ added.
publish-blog.sh
is the primary interface, I supply the
+ date of the post and the path to the md file and that calls compile and
+ update to automate the entire process.
Without going into TOO much detail you can view the latest versions of + the scripts at git.senders.io/senders/senders-io/tree/.
+But the gist of the scripts is I parse out the necessary details, + find/replace some tokens in template files I have setup for headers and + footers, and concat the outputs into the final output HTML files, and now + RSS feed.
+ +