Commit adddc121 authored by Chris Lamb's avatar Chris Lamb 💬

Support draft posts.

parent db93fe8c
......@@ -6,7 +6,14 @@ layout: default
<header class="post-header">
<h1>Reproducible Builds: Weekly report #{{ page.week }}</h1>
<p>Posted: {{ page.date | date: "%b %-d, %Y" }}</p>
{% if page.published %}
<p>Published: {{ page.published | date: "%b %-d, %Y" }}</p>
{% else %}
<hr><center><strong>
This is an unpublished draft post.<br>
<a href="https://anonscm.debian.org/git/reproducible/reproducible-website.git/tree/_blog/posts/{{ page.week }}.md">(source)</a>
</strong></center><br>
{% endif %}
</header>
<hr>
......
......@@ -13,7 +13,7 @@ order: -1
<ul>
{% for page in by_week %}
{% if page.date %}
{% if page.published %}
<li>
<a href="/blog/posts/{{ page.week }}/">Week {{ page.week }}</a>
</li>
......
......@@ -14,13 +14,15 @@ layout: none
{% assign sorted = site.blog | sort: 'date' | reverse %}
{% for page in sorted limit:10 %}
{% if page.published %}
<item>
<title>Reproducible Builds: Weekly report #{{ page.week }}</title>
<pubDate>{{ page.date | date_to_rfc822 }}</pubDate>
<pubDate>{{ page.published | date_to_rfc822 }}</pubDate>
<link>{{ page.url | prepend: site.url }}</link>
<guid isPermaLink="true">{{ page.url | prepend: site.url }}</guid>
<description>{{ page.content | xml_escape }}</description>
</item>
{% endif %}
{% endfor %}
</channel>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment