render-image.rss.xml does not work?

This commit is contained in:
Wouter Groeneveld 2021-01-06 12:04:35 +01:00
parent 2abc480c68
commit 11dbbc1d56
2 changed files with 9 additions and 1 deletions

View File

@ -45,6 +45,12 @@ If you found my work amusing and/or helpful, you can [buy me a coffee](https://k
<img height='36' style='border:0px !important;height:36px;' src='/img/kofi.png' border='0' alt='Buy Me a Coffee' />
</a>
<noscript>
JavaScript is disabled. I use it to obfuscate my e-mail, keeping spambots at bay. <br/>
Reach me using: <code>[firstname] at [this-domain] dot [you-know]</code>.
</noscript>
---
## What's a _multiclass_?

View File

@ -53,9 +53,11 @@ Do not forget the `<noscript/>` tag in case JavaScript is disabled or the visito
</description>
```
I know the documentation mentions `render-image.rss.xml` as a separate RSS renderer, but it [as reported](https://discourse.gohugo.io/t/how-does-render-image-rss-xml-work/29935) before, it currently does not work (v0.79.1).
## Featured images in RSS feeds
I still wasn't satisfied. Some blog posts use a "big image" (or "featured image" masthead), that is part of the article header, and is currently not shown in the RSS reader. After inspecting the RSS specifications, it seems that a `<img/>` tag in the description should do it, provided a `CDATA` wrapper is present. So, the above description tag was extended, and now looks like this:
I still wasn't satisfied. Some blog posts use a "big image" (or "featured image" masthead), that is part of the article header, and is currently not shown in the RSS reader. After inspecting the RSS specifications, it seems that a `<img/>` tag in the description is the only way to do it (provided a `CDATA` wrapper is present), as opposed to twitter cards that have a dedicated tag for this. So, the above description tag was extended, and now looks like this:
```html
<description>