Change the date format to be RFC-822 compliance

master
kirbylife 2023-12-10 23:47:28 -06:00
parent e1678fb679
commit 317f752253
2 changed files with 7 additions and 6 deletions

View File

@ -14,8 +14,8 @@
<entry>
<title>{{ post.title }}</title>
<link>https://blog.kirbylife.dev/post/{{ post.title | slugify }}-{{ post.id }}</link>
<published>{{ post.created_at | date(format="%Y-%m-%d") }}</published>
<updated>{{ post.created_at | date(format="%Y-%m-%d") }}</updated>
<published>{{ post.created_at | date(format="%a, %d %b %Y %H:%M:%S GMT") }}</published>
<updated>{{ post.created_at | date(format="%a, %d %b %Y %H:%M:%S GMT") }}</updated>
<author>
<name>kirbylife</name>
<email>hola@kirbylife.dev</email>

View File

@ -1,17 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<rss version="2.0" xmlns:atom="https://blog.kirbylife.dev/atom.xml">
<channel>
<title>Código Comentado</title>
<link>https://blog.kirbylife.dev</link>
<atom:link href="https://blog.kirbylife.dev/atom.xml" rel="self" type="application/rss+xml" />
<description>Blog personal de kirbylife</description>
<language>es-mx</language>
<webMaster>https://kirbylife.dev</webMaster>
<managingEditor>https://kirbylife.dev</managingEditor>
<webMaster>hola@kirbylife.dev</webMaster>
<managingEditor>hola@kirbylife.dev</managingEditor>
<generator>Rocket</generator>
{%- for post in posts %}
<item>
<title>{{ post.title }}</title>
<pubDate>{{ post.created_at | date(format="%Y-%m-%d") }}</pubDate>
<pubDate>{{ post.created_at | date(format="%a, %d %b %Y %H:%M:%S GMT") }}</pubDate>
<link>https://blog.kirbylife.dev/post/{{ post.title | slugify }}-{{ post.id }}</link>
<guid isPermaLink="true">https://blog.kirbylife.dev/post/{{ post.id }}</guid>
<description>{{ post.content }}</description>