Browse Source

Make the feed compliant with the RSS 2.0 validator

master
PapaTutuWawa 9 months ago
parent
commit
c2b6d7ab02
  1. 14
      layout/feed.xml
  2. 11
      layout/item.xml
  3. 2
      params.json

14
layout/feed.xml

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

11
layout/item.xml

@ -1,14 +1,11 @@
<item>
<title>{{ title }}</title>
<author>papatutuwawa [a] polynom.me</author>
<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>
<![CDATA[
{{ summary }}
]]>
{{ content }}
</description>
<source url="https://{{ blog_url }}/feed.xml">{{ blog_title }}</source>
<pubDate>{{ rfc_2822_date }}</pubDate>
</item>

2
params.json

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

Loading…
Cancel
Save