-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
RSS Feed Link is Broken on Posts #160
Comments
Thanks @gian-hancock for reporting this issue. I will have a look at it when I get some time. |
In It just adds this string to the page url which is not a problem if you are in a menu like If you are trying to provide rss feed links for separate menus or tabs in your website it is better to have feeds in a separate page.
only mention relative page, so that you can recheck in your development server. |
since you mention "about", i just wanted to mention this page has the same problem. when you load the exampleSite, go to about, and click the rss link, it goes to https://localhost:1313/pages/about/index.xml - which returns 404 @gian-hancock your workaround works brilliantly. it removes the brokes RSS icon for my custom content pages, as well as the single post pages, but keeps it on /posts/ and on / , which is the exact behavior i expected. |
1. IntroductionThank you @Dieterbe, @madshckd & @gian-hancock for your valuable contributions.
@gian-hancock thank you for this observation. 2. What was the RSS link intended for?I originally included the RSS link in the footer to provide access to the RSS feed. When I mention "the RSS feed," I'm simply referring to the page independent RSS feed located at I thought a website would have only one RSS feed that includes content from all sections (I mean Hugo content sections). Let's call this as the 'Unified RSS feed' approach. 3. What it was not intended for?
Let's call this as the 'Multiple RSS feed' approach. Those who are interested walking this route, may implement the workarounds/modifications mentioned above. However, keep in mind that you may face some difficulties (or you may have to take some extra steps) when you try to upgrade to the latest version of the theme. To avoid any conflicts, I suggest that you take advantage of the Hugo template override feature. Hugo template overrideHere is a simple description of the override feature for those who are unaware of it. For example, say you wish to add some HTML code to the navigation bar.
This will override the theme's version. 4. What you should do now?If you plan to use the 'Unified RSS feed' approach, which the theme supports, you don't have to do anything. 5. ConclusionGoing forward, I want to emphasize that I'm open to exploring new ideas and suggestions to enhance the RSS feed. Please feel free to share your thoughts and recommendations (if any) in the GitHub discussion associated with this repository. Thank you. |
I just updated to 0.14.0 and this broke the previously working /index.xml and just gives a 404 link. Anything I might have missed during the upgrade? I already changed the social icon from Edit: Seems like it fails to build them:
|
Describe the bug
The RSS Feed link at the bottom of posts 404s. The link works correctly on the
/posts/
list and the home page.Steps to reproduce
Tested with
v1.13.0
:/posts/table-of-content/
Expected behavior
I don't know what the best behaviour is, in my case I overrode the footer partial with to disable the RSS link for posts:
For the example site, it would make sense to link to the
/posts
feed, however in general I think there could be cases where a post appears in multiple feeds, so it might be unclear which is the best feed to pick. I'm a Hugo newbie so I don't know if this "ambiguous" feed thing is an actual possibility.Device information
Windows 11
Hugo 0.121.1 installed via Chocolatey
The text was updated successfully, but these errors were encountered: