Skip to content
Snippets Groups Projects
Commit ed40af2d authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Only include posts past a feed epoch to prevent spamming planets, etc.

parent 0e56f3c3
No related branches found
No related tags found
No related merge requests found
Pipeline #141430 passed
......@@ -5,4 +5,6 @@ url: https://diffoscope.org
baseurl: /
permalink: /news/:title/
feed_epoch: 2020-05-20T00:00:00Z
salsa_url: https://salsa.debian.org/reproducible-builds/diffoscope
......@@ -11,13 +11,15 @@ layout: null
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% for post in site.posts limit:10 %}
{% if post.date > site.feed_epoch %}
<item>
<title>{{ post.title | xml_escape }}</title>
<title>{{ timestamp }}{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | absolute_url }}</link>
<guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment