Commit 8bb7211f authored by Frank's avatar Frank 🏃
Browse files

Add Draft prefix to titles of drafts posts

parent ed62f44a
Pipeline #439183551 passed with stage
in 4 minutes and 23 seconds
......@@ -3,7 +3,7 @@
<div class="post-list-item">
<div class="post-header">
<h4 class="post-date">{{ post.date | date_to_string }}</h4>
<h3 class="post-link"><a href="{{ post.url }}">{{ post.title }}</a></h3>
<h3 class="post-link"><a href="{{ post.url }}">{% if post.draft %}Draft: {% endif %}{{ post.title }}</a></h3>
{% if post.series %}
{% if post.lang == 'nl' %}
{% assign in_the_series = 'In de serie: ' %}
......
......@@ -19,7 +19,7 @@ layout: default
{% endif %}
</div>
<h1 class="post-title">{{ page.title }}</h1>
<h1 class="post-title">{% if page.draft %}Draft: {% endif %}{{ page.title }}</h1>
{% if page.series %}
{% assign posts_in_series = 0 %}
......
......@@ -16,7 +16,7 @@ title: Blog Archive
<li class="post-arch">
<a class="post-title" href="{{ post.url }}">
{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
{% if post.draft %}Draft: {% endif %}{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</a>
</li>
......
......@@ -20,7 +20,7 @@ title: Blog Categories
{% for post in category[1] %}
<li class="post-arch">
<a class="post-title" href="{{ post.url }}">
{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
{% if post.draft %}Draft: {% endif %}{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</a>
</li>
......@@ -34,7 +34,7 @@ title: Blog Categories
{% unless post.category %}
<li class="post-arch">
<a class="post-title" href="{{ post.url }}">
{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
{% if post.draft %}Draft: {% endif %}{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</a>
</li>
......
......@@ -33,7 +33,7 @@ List all the posts within the series
{% if post.series contains s %}
<li class="post-arch">
<a class="post-title" href="{{ post.url }}">
{{ post.title }}
{% if post.draft %}Draft: {% endif %}{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</a>
</li>
......
......@@ -55,7 +55,7 @@ List all the posts with a certain tag
{% if post.tags contains tag %}
<li class="post-arch">
<a class="post-title" href="{{ post.url }}">
{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
{% if post.draft %}Draft: {% endif %}{% if post.series %}{{ post.series }} - {% endif %}{{ post.title }}
<small class="post-date">{{ post.date | date_to_string }}</small>
</a>
</li>
......
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