# " in a summary breaks RSS feeds on Hugo 0.132.0+

**URL:** https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247
**Category:** support
**Created:** [July 5, 2025, 4:43pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247 "2025-07-05T16:43:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![expurple](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/expurple/32/23906_2.png) [@expurple](https://discourse.gohugo.io/u/expurple)
#### Post date: [July 5, 2025, 4:43pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247/1 "2025-07-05T16:43:06Z")

</div>

I don’t know whether that’s a Hugo bug, or whether that’s intended behavior and the theme just had a buggy template to begin with. I can’t find anyhing related in the [release notes](https://github.com/gohugoio/hugo/releases/tag/v0.132.0).

I’ve [reported](https://github.com/mnjm/kayal/pull/67) this to the theme that I’m using, but the maintainer didn’t give any comments. So, now I’m here to hopefully find out what’s going on. See that report for futher details and the reproducer.

On a side note, it’s strange that Hugo doesn’t even check whether its RSS output is valid XML! I’d prefer to see an error from Hugo instead of randomly discovering the issue later. We should probably create a feature request for this, unless that’s already possible and my theme+config somehow disables the validation

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [July 5, 2025, 4:49pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247/2 "2025-07-05T16:49:13Z")

</div>

> [@expurple](#):
>
> it’s strange that Hugo doesn’t even check whether its RSS output is valid XML

The theme/template author is responsible for creating a template that renders valid XML. Hugo’s embedded RSS template handles this as expected/desired:

> <https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/rss.xml#L55>

---

<div class="post-metadata">

### Author: ![expurple](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/expurple/32/23906_2.png) [@expurple](https://discourse.gohugo.io/u/expurple)
#### Post date: [July 5, 2025, 4:59pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247/3 "2025-07-05T16:59:22Z")

</div>

> [@jmooring](#):
>
> The theme/template author is responsible for creating a template that renders valid XML.

Sure. But it would be nice to have a post-template-expansion check to help template authors (and the users of their templates) to notice and fix the issues earlier. Hugo knows that the output format of the generated file is “RSS”, so it shouldn’t be hard to run this check on the necessary files.

> [@jmooring](#):
>
> Hugo’s embedded RSS template handles this as expected/desired

I’ve just tried it. It does, indeed! So, the theme had a buggy custom template. Ok, thank you. I’ll close this thread and create a separate one to discuss my feature request

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [July 5, 2025, 5:01pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247/4 "2025-07-05T17:01:11Z")

</div>

> [@expurple](#):
>
> have a post-template-expansion check

This is unrealistic. Do you expect Hugo to validate HTML, CSS, JavaScript, and sitemaps as well? Validation is somebody else’s problem. Garbage in, garbage out.

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [July 7, 2025, 5:01pm UTC](https://discourse.gohugo.io/t/in-a-summary-breaks-rss-feeds-on-hugo-0-132-0/55247/5 "2025-07-07T17:01:40Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
