draft posts

This commit is contained in:
Paul Gauthier 2024-05-22 14:34:12 -07:00
parent 81ec0515bb
commit d94da4f809
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,10 @@
---
title: A draft post.
excerpt: With a draft summary.
highlight_image: /assets/linting.jpg
draft: true
---
# A draft post
Content TBD.

View file

@ -3,7 +3,8 @@ layout: default
--- ---
<div class="posts"> <div class="posts">
{% for post in site.posts %} {% for post in site.posts %}
{% unless post.draft %}
<article class="post"> <article class="post">
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2> <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<div class="entry"> <div class="entry">
@ -27,5 +28,6 @@ layout: default
{{ post.date | date: "%b %-d, %Y" | upcase }} {{ post.date | date: "%b %-d, %Y" | upcase }}
</p> </p>
</article> </article>
{% endfor %} {% endunless %}
{% endfor %}
</div> </div>