[Git][reproducible-builds/diffoscope-website][master] Only include posts past a feed epoch to prevent spamming planets, etc.

Chris Lamb gitlab at salsa.debian.org
Fri May 29 09:26:13 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope-website


Commits:
ed40af2d by Chris Lamb at 2020-05-29T10:25:46+01:00
Only include posts past a feed epoch to prevent spamming planets, etc.

- - - - -


2 changed files:

- _config.yml
- feed.xml


Changes:

=====================================
_config.yml
=====================================
@@ -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


=====================================
feed.xml
=====================================
@@ -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>



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/commit/ed40af2dd0883d98ab8d4573fb97295cad3716fb

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/commit/ed40af2dd0883d98ab8d4573fb97295cad3716fb
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200529/1210a74c/attachment.htm>


More information about the rb-commits mailing list