<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/customizing-hugo-blogdown-rss-templates/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://liao961120.github.io/2018/12/13/hugo_rss.html"> Yongfu's Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="https://github.com/rstudio/blogdown" target="_blank">Blogdown</a> makes it easy to create Hugo blogs or personal websites, and it is becoming more and more popular in the R community. Once the blog is created, people might want to submit their blogs’ RSS feeds to <a rel="nofollow" href="https://www.r-bloggers.com/" target="_blank">R-bloggers</a>. But before that can happen, one must modify the RSS template to meet the <a rel="nofollow" href="https://www.r-bloggers.com/add-your-blog/" target="_blank">requirements</a> of RSS submission.<span></span></p>
<p>Due to my successful experience in <a rel="nofollow" href="https://liao961120.github.io/2018/08/02/rblogger-criteria.html" target="_blank">creating a new Jekyll RSS template</a> for my blog, I thought it would be easy to customize the RSS template of Hugo blogs to make it suitable for <strong>R-bloggers</strong>. <em>I was WRONG</em>. Hugo has stricter rules for modifying RSS templates<sup><a rel="nofollow" href="https://liao961120.github.io/2018/12/13/hugo_rss.html#fn:jekyll" target="_blank">1</a></sup>, and it took me a while to figure out how to modify the <strong>category/tag RSS templates</strong>.</p>
<p>By default, Hugo generates different RSS feeds for each section and taxonomy<sup><a rel="nofollow" href="https://liao961120.github.io/2018/12/13/hugo_rss.html#fn:hugodoc" target="_blank">2</a></sup>. I will write about how to modify <em>a subset of them</em> to create category- or tag-specific RSS feeds for <strong>R-bloggers</strong>, i.e, making the <code></code>