[Git][reproducible-builds/reproducible-website][master] hide draft posts on frontpage

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Nov 30 17:41:19 UTC 2022



Holger Levsen pushed to branch master at Reproducible Builds / reproducible-website


Commits:
684acdce by Holger Levsen at 2022-11-30T18:41:09+01:00
hide draft posts on frontpage

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- index.md


Changes:

=====================================
index.md
=====================================
@@ -94,10 +94,11 @@ Learn more about [how to make your software build reproducibly…]({{ "/docs" |
 ## Recent news
 
 <ul class="list-unstyled">
-    {% for post in site.posts limit: 3 %}
+    {% assign posts = site.posts | where: 'draft', 'false' %}
+    {% for x in posts limit: 3 %}
     <li>
-        <span class="text-muted">{{ post.date | date: "%b %-d, %Y" }}</span>:
-        <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
+        <span class="text-muted">{{ x.date | date: "%b %-d, %Y" }}</span>:
+        <a href="{{ x.url | relative_url }}">{{ x.title }}</a>
     </li>
     {% endfor %}
 </ul>



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/684acdced1c76be7555bd9084592e49a26ba59ea
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/20221130/e10cda69/attachment.htm>


More information about the rb-commits mailing list