[Git][reproducible-builds/reproducible-website][master] Fix draft detection logic. (Closes: reproducible-builds/reproducible-website#28)

Chris Lamb gitlab at salsa.debian.org
Wed Dec 9 17:14:25 UTC 2020



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


Commits:
81a0b422 by Chris Lamb at 2020-12-09T17:14:16+00:00
Fix draft detection logic. (Closes: reproducible-builds/reproducible-website#28)

- - - - -


1 changed file:

- _layouts/report.html


Changes:

=====================================
_layouts/report.html
=====================================
@@ -6,12 +6,12 @@ layout: default
 
 <p>← <a href="{{ "/news/" | relative_url }}">View all our monthly reports</a></p>
 
-{% unless page.date %}
+{% if page.draft %}
 <div class="col-12 alert alert-warning" role="alert">
   <strong>This is an unpublished draft report.</strong>
   <a href="https://salsa.debian.org/reproducible-builds/reproducible-website/blob/master/_reports/{{ page.year }}-{{ page.month }}.md">(source)</a>
 </div>
-{% endunless %}
+{% endif %}
 
 <hr>
 



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/81a0b422d90c316d38f105ad16199c1f18091e2a
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/20201209/df4ec39a/attachment.htm>


More information about the rb-commits mailing list