Made it possible to publish a draft post, we just prevent them from being available in the blog list.

This commit is contained in:
Robin 2018-12-03 23:00:20 +01:00
commit dddad52046
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
status: draft draft: true
published: false published: true
title: The future of Greenshot for Windows title: The future of Greenshot for Windows
tags: tags:
- windows - windows

View file

@ -10,7 +10,7 @@ tags: []
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-7"> <div class="col-md-7">
{% for post in site.posts %} {% for post in site.posts %}{% unless post.draft %}
<div class="panel panel-primary" id="blog_{{ forloop.index }}"> <div class="panel panel-primary" id="blog_{{ forloop.index }}">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">{{ post.date | date: "%-d %b %Y" }}: {{ post.title }}</h3> <h3 class="panel-title">{{ post.date | date: "%-d %b %Y" }}: {{ post.title }}</h3>