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
Enable RSS for blogs? #297
Comments
|
Hi @utkarsh2102, you have access to rss feed with the index.xml file as you can see here on @luizdepra website. |
|
Hi @clement-pannetier, @luizdepra, |
|
Hi @utkarsh2102, regarding the doc you can find here, the default RSS template that ships with Hugo (I don't see a file in the theme that can override the default rendering of the RSS feed) render the content like this :
as you can see here. So, I think that if you want to change this default behavior, you need to override the RSS template with you own file inside |
|
@clement-pannetier, hi, |
|
I see threads like this. But I am still not sure. I'd really appreciate all your help here! <3 |
|
Aha, another quick thingy that could work is:
Source: https://yongfu.name/2018/12/13/hugo_rss.html Unsure how to do it though :P |
|
Lastly, I tried doing this in this commit: utkarsh2102/utkarsh2102.org@3a070ee But the Netlify build fails, saying:
|
Hi @utkarsh2102, I think that your code is ok but the hugo version you are using (0.55.4) is too old, try to update it and tell me if it fixes the problem. I tried to add the |
|
I read the RSS specifications, the description element inside elements of "item" is meant to describe the item synopsis, not the full page content. |
Woot, it indeed fixed the build. However, it doesn't fix the problem. The index.xml is still not complete.
Aha! What's the fix then? I am sorry, I am getting clueless now.. 😭 |
What's missing ?
I just say that RSS files are not meant to display the full content of a post for example, why you want to do that 🤔? |
The RSS feed is incomplete. It's just showing the first few lines. Whilst it should show the entire blog post.
No, that's wrong. They're meant to give you the entire content of the blog. It kinda resembles with the present |
It works for me, I ran
That's not what's in the spec, but I understand why you want it to be like that.
|
Wow! I just got it working via: By any chance d'you plan to have this here? It'd be great if you can do so! I'll be happy to raise a PR. |
I don't know why, normally when you override the theme files in your site
I don't understand, it works fine on my website... |
Say whaaaaat!? I just had to put the |
🤷♂️😅 |
Templates inside
I have no objections. But we should use the custom |
|
Thanks, I'll raise a PR for what I'm using (which works for others, too!) :) |
|
Hi. This change away from Hugo's default behaviour (RSS feeds including full content instead of just a summary) has caught me out. I've undone the change and put Hugo's original rss.xml in my site's @luizdepra Would you consider reverting the PR for this and advising @utkarsh2102 to use their site's layouts to customise their feed if they want to use a custom template? I see that @utkarsh2102's source is at https://github.com/utkarsh2102/utkarsh2102.com , I'd happily create a PR there to add a |
|
I kinda don't like the way Hugo generates the default summary. It just cut some first sentences from the full article. But ok, I know I can provide a better summary to override the default one generate by Hugo. So, this is not Hugo's and neither RSS' fault. Gimme a time to think about it. |
|
@plett and @utkarsh2102. I decided to revert the custom rss template. |
|
If anyone stumbled across this for a better RSS xml file see my project one here: |

Hi @luizdepra,
Thank you for the work you've put in on this so far! This is just amazing!
What's blocking me to use this is the ability to not have the RSS feel for blogs. Or am I missing something?
I need to sync my blog posts so that they appear on planet.debian.org (or any other planet for that matter) which is linked via the RSS. Is there any way to fix this bit?
The text was updated successfully, but these errors were encountered: