-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative links in RSS feed #141
Comments
This is correct, but I'm not sure if it's worth it, considering the build time that may increase.
This is weird, maybe we should consider it as an upstream issue and submit an issue in Hugo? |
There we go: gohugoio/hugo#7272 |
That argument should be moot given that build time appears to have dropped by ~25% due to recent changes. 😉 |
Wow, then we can fix this issue now! Could you create a PR for this? |
Never mind. I measured this properly for my site now - |
On the other hand, removing these two regular expressions didn't change build times either - their impact is too small for me to measure (two RSS files, limit is 10 for both). |
Yes, I just tested it with my site (one RSS file, 132 posts, no limits), and the impact is still very small. So it's time to solve this issue now! |
Pull request is #170. |
W3C feed validator objects to the RSS feeds containing relative links: https://validator.w3.org/feed/docs/warning/ContainsRelRef.html. In fact, not all RSS feed readers will be able to correctly resolve those, which is why feed should always use absolute links. I investigated this issue a few weeks ago and it seems that Hugo will only apply the "make links absolute" logic to its own RSS feeds and there is no way to make it do the same for custom output formats.
Here is what my current work-around looks like:
The text was updated successfully, but these errors were encountered: