#+title: RSS
Source: [[https://pawelgrzybek.com/simple-rss-atom-and-json-feed-for-your-blog/][Simple RSS, Atom and JSON feed for your blog]]
A reference for those of us goblins who like to write out our RSS and Atom XML files by hand. ;)
** RSS
#+BEGIN_SRC xml
Example website title
https://example.com
Example website description.Post one
https://example.com/posts-one
Post one content.https://example.com/posts-oneMon, 22 May 2023 13:00:00 -0600Post two
https://example.com/posts-two
Post two content.https://example.com/posts-twoMon, 15 May 2023 13:00:00 -0600
#+END_SRC
** Atom
#+BEGIN_SRC xml
http://example.com/Example website title2023-05-22T13:00:00.000ZJohn DoeExample website description.https://example.com/posts-onePost one2023-05-22T13:00:00.000Zhttps://example.com/posts-onePost one content.https://example.com/posts-twoPost two2023-05-15T13:00:00.000Zhttps://example.com/posts-twoPost two content.
#+END_SRC
** JSON
#+BEGIN_SRC json
{
"version": "https://jsonfeed.org/version/1.1",
"title": "Example website title",
"home_page_url": "https://example.com",
"feed_url": "https://example.com/feed.json",
"description": "Example website description.",
"items": [
{
"id": "https://example.com/posts-one",
"url": "https://example.com/posts-one",
"title": "Post one content.",
"content_text": "Post one content.",
"date_published": "2023-05-22T13:00:00.000Z"
},
{
"id": "https://example.com/posts-two",
"url": "https://example.com/posts-two",
"title": "Post two content.",
"content_text": "Post two content.",
"date_published": "2023-05-15T13:00:00.000Z"
}
]
}
#+END_SRC
** Resources
- [[https://www.rssboard.org/rss-specification][The RSS 2.0 Specification]]
- [[https://validator.w3.org/feed/docs/atom.html][The Atom Syndication Format Specification]]
- [[https://www.jsonfeed.org/version/1.1/][The JSON Feed Version 1.1 Specification]]
- [[https://validator.w3.org/feed/][RSS and Atom Feed validator]]
- [[https://validator.jsonfeed.org/][JSON Feed validator]]