Closed z0al closed 5 years ago
Thanks @z0al!
Would you be at all interested in contributing these improvements?
I'd love to, but no idea how Gatsby works.
May check it on the weekend if no one else did it already.
Regarding No. 3, I think that should be done on the server. Where do you host the website?
I'm hosting on netlify. I'm sure there's a way to make that work. I'll have to look into it.
The feed is created here: https://github.com/kentcdodds/kentcdodds.com/blob/f043adfebfe3553390aa576998d3b30fa7afbb0b/gatsby-config.js#L119-L160
I'll bet we could just borrow a bunch from Dan's blog: https://github.com/gaearon/overreacted.io/blob/9d6fc2992a5070e6eb62f6ba5821266d31c7ec0b/gatsby-config.js#L77-L131
I'm hosting on netlify. I'm sure there's a way to make that work. I'll have to look into it.
I've done it a few days ago, but in my case, I've enabled it on all routes, all we need to do is adding a _headers
file on the website root (so, it should go to static/
folder). Here is mine:
/*
Access-Control-Allow-Origin: *
Ref doc: https://www.netlify.com/docs/headers-and-basic-auth/#multi-key-header-rules
The feed is created here
Thanks.
Ok, that turned out to be really easy. Will open a PR in a few minutes. Thanks for your help!
Hey Kent!
Congrats for the new website look, it looks cool :ok_hand:
Problem (s)
/
in allguid
s right after the base domain which (while works fine) could cause a tiny problem for RSS readers when you later (eventually ) fix it. So, I suggest to fix it now ;)Access-Control-Allow-Origin: *
for the feed URL so that client-side RSS reader users (like me) could access your posts.Current behavior
Expected behavior
I'd expect the RSS feed to include something like
<content:encoded/>
tag (since the necessary namespace is already declared ) that includes an encoded representation of the full post content. See Dan's blog for example.Continue being awesome :)