Highlight draft posts
This commit is contained in:
parent
b3c7e26a58
commit
af66117452
|
@ -4,10 +4,10 @@ title: Blog
|
||||||
use: [posts]
|
use: [posts]
|
||||||
---
|
---
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul class="list-reset">
|
<ul class="list-reset -mx-4">
|
||||||
{% for post in data.posts %}
|
{% for post in data.posts %}
|
||||||
<li class="mb-12">
|
<li class="p-4 mb-12 {{ post.draft ? 'bg-blue-lighter' }}">
|
||||||
<h2 class="text-2xl mb-1">{{ post.title }}</h2>
|
<h2 class="text-2xl mb-1">{{ post.draft ? 'Draft: '|upper }}{{ post.title }}</h2>
|
||||||
<p class="text-sm text-grey-dark mb-4">Posted on {{ post.date|date('jS F Y') }}</p>
|
<p class="text-sm text-grey-dark mb-4">Posted on {{ post.date|date('jS F Y') }}</p>
|
||||||
|
|
||||||
{% include 'post/intro-image' with { page: post } %}
|
{% include 'post/intro-image' with { page: post } %}
|
||||||
|
|
Loading…
Reference in a new issue