-
Notifications
You must be signed in to change notification settings - Fork 611
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
Empty RSS href in posts #403
Comments
Hi @whatacold, I'm not facing this issue, is your code available somewhere online? |
Still not working after trying:
It looks like |
I don't get it, maybe I simply don't show it on post pages, by hacking that part of
|
Give a try to
See also https://framagit.org/roneo/roneo.frama.io/-/blob/master/layouts/_default/rss.xml |
Woops, this is a duplicate of #330 .
My understanding is that hugo doesn't assign BTW, which hugo version do you use? |
I'm using |
Thanks for the pointer, I also use this version. I'm going to build your sites and see how it works, if I have the time. |
Hi @whatacold, could you please close this issue and re-open if you have time to make a test and face a problem? |
OK, the workaround I took was not to show RSS on posts. |
I've fixed this. The issue is that the A clearer model is to simply use the same single site (home page) RSS link for all, assuming you show posts on your front page. In <a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="RSS"> to <a href="{{ printf "%s%s" site.BaseURL "index.xml"}}" title="RSS"> If you want a fixed version of the previous functionality, where it uses the page's (section's) RSS feed if it exists, otherwise falls back to the main site one, change it to: <a href="
{{ if (.OutputFormats.Get "RSS") }}
{{ (.OutputFormats.Get "RSS").RelPermalink }}
{{ else }}
{{ printf "%s%s" site.BaseURL "index.xml"}}
{{ end }}
" title="RSS"> |
fix halogenica#403: Exclude the rss link in the post pages as it's empty.
The RSS href in posts are empty with html:
For comparison,
rss.xml
But it's okay on the homepage and section pages.
The text was updated successfully, but these errors were encountered: