Add <link> tag to RSS feed item

master
Hugo Thunnissen 4 years ago
parent df82bea221
commit 2353422acb

@ -39,12 +39,12 @@
</div> </div>
<h1>Blog</h1> <h1>Blog</h1>
<div><a href="./posts/introduction/index.html"><h2 style="margin-bottom: 0.1em;"> Introduction </h2></a> <div><a href="posts/introduction/index.html"><h2 style="margin-bottom: 0.1em;"> Introduction </h2></a>
<i style="font-size: 0.8em;">Sat 08 Feb 2020 09:30:06 AM CET</i><p style="margin-top: 0.5em;">Hello, welcome to my blog! My name is Hugo. I am a 22 year old Software <i style="font-size: 0.8em;">Sat 08 Feb 2020 09:30:06 AM CET</i><p style="margin-top: 0.5em;">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 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 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 software I create is open_source by default. I also run a one-man company that
provides some IT services on the side. ... <a href="./posts/introduction/index.html">Continue reading</a></p> provides some IT services on the side. ... <a href="posts/introduction/index.html">Continue reading</a></p>
</div> </div>
<hr> </body> <hr> </body>
</html> </html>

@ -5,16 +5,16 @@
<link>https://hugot.nl/blog.html</link> <link>https://hugot.nl/blog.html</link>
<description>Hugo's personal blog</description> <description>Hugo's personal blog</description>
<language>en-us</language> <language>en-us</language>
<pubDate>Sat 08 Feb 2020 10:15:32 AM CET</pubDate> <pubDate>Sat 08 Feb 2020 10:22:11 AM CET</pubDate>
<lastBuildDate>Sat 08 Feb 2020 10:15:32 AM CET</lastBuildDate> <lastBuildDate>Sat 08 Feb 2020 10:22:11 AM CET</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs> <docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Hugo's Custom Bash Script</generator> <generator>Hugo's Custom Bash Script</generator>
<managingEditor>social@hugot.nl</managingEditor> <managingEditor>social@hugot.nl</managingEditor>
<webMaster>infra@hugot.nl</webMaster> <webMaster>infra@hugot.nl</webMaster>
<item><title> Introduction </title><description>Hello, welcome to my blog! My name is Hugo. I am a 22 year old Software <item><title> Introduction </title><link>https://hugot.nl/posts/introduction/index.html</link><description>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 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 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 software I create is open_source by default. I also run a one-man company that
provides some IT services on the side.</description><pubDate>Sat 08 Feb 2020 09:30:06 AM CET</pubDate><guid>./posts/introduction/index.html#MjM3MzUyOTAwNSA5MDYK</guid></item> provides some IT services on the side.</description><pubDate>Sat 08 Feb 2020 09:30:06 AM CET</pubDate><guid>posts/introduction/index.html#MjM3MzUyOTAwNSA5MDYK</guid></item>
</channel> </channel>
</rss> </rss>

@ -181,6 +181,7 @@ while read -r post_html; do
{ {
el item el item
el-enclose title "$title" el-enclose title "$title"
el-enclose link "$site_url/$href"
el-enclose description "$excerpt" el-enclose description "$excerpt"
el-enclose pubDate "$pubdate" el-enclose pubDate "$pubdate"
el-enclose guid "${href}#$(base64 <(cksum <<<"$text"))" el-enclose guid "${href}#$(base64 <(cksum <<<"$text"))"

@ -1 +1 @@
./posts/introduction/index.html posts/introduction/index.html

Loading…
Cancel
Save