From 38769172ace0ff495ebca20388578b87c4c5a8d2 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Sat, 8 Feb 2020 10:08:54 +0100 Subject: [PATCH] Fix missing tag and remove unnecessary whitespace from feed generation --- feed.xml | 11 ++++------- generate-blog.bash | 7 ++++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/feed.xml b/feed.xml index 31e54a1..d1609c0 100644 --- a/feed.xml +++ b/feed.xml @@ -5,19 +5,16 @@ https://hugot.nl/blog.html Hugo's personal blog en-us - Sat 08 Feb 2020 09:58:35 AM CET - Sat 08 Feb 2020 09:58:35 AM CET + Sat 08 Feb 2020 10:07:44 AM CET + Sat 08 Feb 2020 10:07:44 AM CET http://blogs.law.harvard.edu/tech/rss Hugo's Custom Bash Script social@hugot.nl infra@hugot.nl - Introduction - Hello, welcome to my blog! My name is Hugo. I am a 22 year old Software + Introduction Hello, welcome to my blog! My name is Hugo. I am a 22 year old Software Engineering student from the Netherlands. Software development is a huge part of my life, I write a lot of (weird) programs to scratch my own itch and most software I create is open_source by default. I also run a one-man company that -provides some IT services on the side. - Sat 08 Feb 2020 09:30:06 AM CET - ./posts/introduction/index.html#MjM3MzUyOTAwNSA5MDYK +provides some IT services on the side.Sat 08 Feb 2020 09:30:06 AM CET./posts/introduction/index.html#MjM3MzUyOTAwNSA5MDYK diff --git a/generate-blog.bash b/generate-blog.bash index b648619..a3e983f 100755 --- a/generate-blog.bash +++ b/generate-blog.bash @@ -115,7 +115,9 @@ el-enclose() { element_name="$1" shift - echo "<$element_name>" "$@" "" + printf '%s' "<$element_name>" + printf '%s' "$@" + printf '%s' "" } site_url="https://hugot.nl" @@ -173,10 +175,13 @@ while read -r post_html; do } >> "$new_html" { + el item el-enclose title "$title" el-enclose description "$excerpt" el-enclose pubDate "$pubdate" el-enclose guid "${href}#$(base64 <(cksum <<<"$text"))" + + el-close item } >> "$new_rss" done < "$posts_file"