1 min read
Hugo full-text RSS
I recently wrote that I started using RSS again. To be sure that the feed of this site works, I subscribed to my own blog posts. When I open the post in the RSS reader it only shows the introduction of the post.
The problem is already known to Hugo. The solution is to add a RSS feed template file to the theme. So I copied the official RSS template , pasted it into themes/hugo-new-css-theme/layouts/_default/rss.xml and made this update:
-<description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+<description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
And for some an unknown reason this change:
-<language>{{ site.Language.Locale }}</language>{{ with $authorEmail }}
+<language>{{ site.Language.Lang }}</language>{{ with $authorEmail }}
P.S. I did not know that diff can be used as code fence until I wrote this.
Tags: 100daystooffload , hugo , rss
Edit Page / Show Statistic