mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 06:13:06 +01:00
Add rss.org
This commit is contained in:
parent
275ff08b49
commit
87abce1d5e
@ -39,6 +39,7 @@ This is a collection of notes on tech and other things. Intended audience: mostl
|
||||
- [[file:raid.org][RAID]]
|
||||
- [[file:re-hd.org][Resident Evil HD]]
|
||||
- [[file:retropie.org][RetroPie]]
|
||||
- [[file:rss.org][RSS]]
|
||||
- [[file:systemd.org][Systemd]]
|
||||
- [[file:voidlinux.org][Void Linux]]
|
||||
- [[file:zfs.org][ZFS]]
|
||||
|
97
rss.org
Normal file
97
rss.org
Normal file
@ -0,0 +1,97 @@
|
||||
#+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
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Example website title</title>
|
||||
<link>https://example.com</link>
|
||||
<description>Example website description.</description>
|
||||
<atom:link href="https://example.com/rss.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Post one</title>
|
||||
<link>https://example.com/posts-one</link>
|
||||
<description>Post one content.</description>
|
||||
<guid isPermaLink="true">https://example.com/posts-one</guid>
|
||||
<pubDate>Mon, 22 May 2023 13:00:00 -0600</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>Post two</title>
|
||||
<link>https://example.com/posts-two</link>
|
||||
<description>Post two content.</description>
|
||||
<guid isPermaLink="true">https://example.com/posts-two</guid>
|
||||
<pubDate>Mon, 15 May 2023 13:00:00 -0600</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
#+END_SRC
|
||||
|
||||
** Atom
|
||||
#+BEGIN_SRC xml
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>http://example.com/</id>
|
||||
<title>Example website title</title>
|
||||
<updated>2023-05-22T13:00:00.000Z</updated>
|
||||
<author>
|
||||
<name>John Doe</name>
|
||||
</author>
|
||||
<link href="https://example.com/atom.xml" rel="self" type="application/rss+xml" />
|
||||
<subtitle>Example website description.</subtitle>
|
||||
<entry>
|
||||
<id>https://example.com/posts-one</id>
|
||||
<title>Post one</title>
|
||||
<link href="https://example.com/posts-one"/>
|
||||
<updated>2023-05-22T13:00:00.000Z</updated>
|
||||
<summary type="html">https://example.com/posts-one</summary>
|
||||
<content type="html">Post one content.</content>
|
||||
</entry>
|
||||
<entry>
|
||||
<id>https://example.com/posts-two</id>
|
||||
<title>Post two</title>
|
||||
<link href="https://example.com/posts-two"/>
|
||||
<updated>2023-05-15T13:00:00.000Z</updated>
|
||||
<summary type="html">https://example.com/posts-two</summary>
|
||||
<content type="html">Post two content.</content>
|
||||
</entry>
|
||||
</feed>
|
||||
#+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]]
|
Loading…
Reference in New Issue
Block a user