From 221a8f6451f7599cbd7494817272cfb1ee373b3f Mon Sep 17 00:00:00 2001 From: Joseph Hall Date: Sat, 23 May 2015 09:55:40 -0500 Subject: [PATCH] Incorporates #157 from @dieyushi and #215 from @miguelos. In a nutshell: limit RSS feeds to 20, correct some bathing issues, format timestamps, shorten TTL. --- atom.xml | 4 ++-- rss.xml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 atom.xml mode change 100644 => 100755 rss.xml diff --git a/atom.xml b/atom.xml old mode 100644 new mode 100755 index cec8613..2b1f27b --- a/atom.xml +++ b/atom.xml @@ -6,7 +6,7 @@ title : Atom Feed {{ site.title | xml_escape }} - + {{ site.time | date_to_xmlschema }} {{ site.production_url }} @@ -15,7 +15,7 @@ title : Atom Feed {{ site.author.email }} - {% for post in site.posts %} + {% for post in site.posts limit:20 %} {{ post.title | xml_escape }} diff --git a/rss.xml b/rss.xml old mode 100644 new mode 100755 index 49c236a..419c897 --- a/rss.xml +++ b/rss.xml @@ -4,23 +4,23 @@ title : RSS Feed --- - + {{ site.title | xml_escape }} {{ site.title | xml_escape }} - {{ site.author.name | xml_escape }} - {{ site.production_url }}{{ site.rss_path }} {{ site.production_url }} - {{ site.time | date_to_xmlschema }} - {{ site.time | date_to_xmlschema }} - 1800 + + {{ site.time | date_to_rfc822 }} + {{ site.time | date_to_rfc822 }} + 60 -{% for post in site.posts %} +{% for post in site.posts limit:20 %} {{ post.title | xml_escape }} {{ post.content | xml_escape }} {{ site.production_url }}{{ post.url }} {{ site.production_url }}{{ post.id }} - {{ post.date | date_to_xmlschema }} + {{ post.date | date_to_rfc822 }} {% endfor %}