Make the feed compliant with the RSS 2.0 validator

This commit is contained in:
PapaTutuWawa 2021-01-01 23:03:31 +01:00
parent 40b68f269e
commit c2b6d7ab02
3 changed files with 10 additions and 17 deletions

View File

@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ title }}</title> <title>{{ blog_title }}</title>
<link>https://{{ blog_url }}/</link> <link>https://{{ blog_url }}</link>
<link href="https://{{ blog_url }}/" /> <webMaster>papatutuwawa [a] polynom.me</webMaster>
<description>{{ blog_description }}</description> <description>{{ blog_description }}</description>
<author> <language>en-gb</language>
<name>{{ author_name }}</name>
<email>{{ email_user }} [a] {{ email_domain }}</email>
<uri>https://{{ blog_url }}/about.html</uri>
</author>
<atom:link href="https://{{ blog_url }}/atom.xml" rel="self" type="application/rss+xml" /> <atom:link href="https://{{ blog_url }}/atom.xml" rel="self" type="application/rss+xml" />
{{ content }} {{ content }}
</channel> </channel>
</rss> </rss>

View File

@ -1,14 +1,11 @@
<item> <item>
<title>{{ title }}</title> <title>{{ title }}</title>
<author>papatutuwawa [a] polynom.me</author>
<link>https://{{ blog_url }}/{{ slug }}.html</link> <link>https://{{ blog_url }}/{{ slug }}.html</link>
<link href="https://{{ blog_url }}/{{ slug }}.html" /> <guid isPermaLink="true">https://{{ blog_url }}/{{ slug }}.html</guid>
<guid isPermaLink="true">
https://{{ blog_url }}/{{ slug }}.html
</guid>
<description> <description>
<![CDATA[ {{ content }}
{{ summary }}
]]>
</description> </description>
<source url="https://{{ blog_url }}/feed.xml">{{ blog_title }}</source>
<pubDate>{{ rfc_2822_date }}</pubDate> <pubDate>{{ rfc_2822_date }}</pubDate>
</item> </item>

View File

@ -1,6 +1,6 @@
{ {
"author_name": "Alexander 'PapaTutuWawa'", "author_name": "Alexander 'PapaTutuWawa'",
"title": "PapaTutuWawa's Blog", "blog_title": "PapaTutuWawa's Blog",
"blog_description": "My personal blog. Mainly tech stuff.", "blog_description": "My personal blog. Mainly tech stuff.",
"git_url": "git.polynom.me", "git_url": "git.polynom.me",
"blog_url": "blog.polynom.me", "blog_url": "blog.polynom.me",