mxstbr.com icon indicating copy to clipboard operation
mxstbr.com copied to clipboard

XML RSS Feed

Open mxstbr opened this issue 6 years ago • 5 comments

Maybe some feed readers do not support the JSON feed I built? Will have to wait for replies (https://mobile.twitter.com/mxstbr/status/1087292997480390656), but it might be worth building a XML version either way.

Would have to adjust the data/generate-json-feed.js script to also generate a XML script.

mxstbr avatar Jan 21 '19 10:01 mxstbr

Noticed as well that I'm not sure feed readers can parse the datePublished at on the JSON feed as it's currently shorthand instead of RFC3339.

Might be able to replace the date in the JSON with date.toISOString()

slpixe avatar Feb 26 '19 09:02 slpixe

PRs welcome!

mxstbr avatar Feb 26 '19 10:02 mxstbr

I think I can look into this. Also, I'm curious why doesn't the current JSON Feed contain full text? Is it intentional?

 {
      "id": "https://mxstbr.com/thoughts/css-in-js",
      "url": "https://mxstbr.com/thoughts/css-in-js",
      "title": "Why I Write CSS in JavaScript",
      "content_text": "For three years, I have styled my web apps without any `.css` files. Instead, I have written all the CSS in JavaScript. Let me explain. See https://mxstbr.com/thoughts/thoughts/css-in-js!",
      "summary": "For three years, I have styled my web apps without any `.css` files. Instead, I have written all the CSS in JavaScript. Let me explain.",
      "image": "/static/images/css-in-js.png",
      "date_published": "2019-02-18"
    }

z0al avatar Mar 12 '19 16:03 z0al

That would be amazing!! :100:


Yes, I did not manage to convert the React components I have to plain text. Open to ideas on that front too!

mxstbr avatar Mar 12 '19 18:03 mxstbr

I was just about to open an issue for this, you guys are great! :rocket:

Here's how to check whether the generated feed is valid: https://validator.w3.org/feed/ (currently it isn't)

(side note, I'm reading feeds on my email client - Thunderbird - which apparently doesn't yet support JSON)

robinmetral avatar Mar 12 '19 23:03 robinmetral

Shipped: https://mxstbr.com/rss

mxstbr avatar May 09 '24 19:05 mxstbr