From 86fce3a06a2483bca54273a31ed0ecd47c0836c5 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Thu, 16 Apr 2020 08:36:38 +0200 Subject: [PATCH] Exclude
tags from post html in RSS feed --- feed.xml | 16 ++++++---------- generate-blog.bash | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/feed.xml b/feed.xml index 749a62e..fd793b4 100644 --- a/feed.xml +++ b/feed.xml @@ -5,14 +5,13 @@ https://hugot.nl/blog.html Hugo's personal blog en-us - Thu, 16 Apr 2020 08:18:31 +0200 - Thu, 16 Apr 2020 08:18:31 +0200 + Thu, 16 Apr 2020 08:36:12 +0200 + Thu, 16 Apr 2020 08:36:12 +0200 http://blogs.law.harvard.edu/tech/rss Hugo's Custom Bash Script social@hugot.nl (Hugot) infra@hugot.nl (Hugot Infra) - How To Use Your Email Client For Physical Mail https://hugot.nl/posts/use-your-mail-client-for-physical-mail/index.html<article> - <h1> + How To Use Your Email Client For Physical Mail https://hugot.nl/posts/use-your-mail-client-for-physical-mail/index.html <h1> How To Use Your Email Client For Physical Mail </h1> <p> @@ -121,13 +120,11 @@ , but I don&#39;t recommend using it if you don&#39;t fully understand its contents, it&#39;s not a polished user experience 🤓. - </p> -</article>Mon, 17 Feb 2020 11:55:42 +0100 How To Use Your Email Client For Physical Mail NDc2MDg1MjYxIDQxODUK + </p>Mon, 17 Feb 2020 11:55:42 +0100 How To Use Your Email Client For Physical Mail NDc2MDg1MjYxIDQxODUK Creating a Simple Static Blog https://hugot.nl/posts/simple-static-blog/index.htmlSat, 08 Feb 2020 12:14:16 +0100 Creating a Simple Static Blog MjU5OTIyNDIwMyA2MTI5Cg== - Introduction https://hugot.nl/posts/introduction/index.html<article> - <h1> + Introduction https://hugot.nl/posts/introduction/index.html <h1> Introduction </h1> <p> @@ -158,8 +155,7 @@ </p> <p> I hope to see you around! - Hugo - </p> -</article>Sat, 08 Feb 2020 09:30:06 +0100 Introduction MzYzMzkyNDgwOCA5MDcK + </p>Sat, 08 Feb 2020 09:30:06 +0100 Introduction MzYzMzkyNDgwOCA5MDcK diff --git a/generate-blog.bash b/generate-blog.bash index 6d74721..3ae8704 100755 --- a/generate-blog.bash +++ b/generate-blog.bash @@ -139,7 +139,7 @@ while read -r post_html; do # Escape just the article element for use in the RSS feed article description. # This way the entire article can be read from an RSS reader. - article_html="$(pup article < "$post_html" | escape-html)" + article_html="$(pup article < "$post_html" | head -n -1 | tail -n +2 | escape-html)" # Escape the post html file name to safely use it in the generated html. href="$(escape-html <<<"$post_html")" || exit $?