Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Draft posts in Jekyll
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{% for post in site.posts %}
{% unless post.draft %}
<a href="{{ post.url }}">{{ post.title }}</a>
{% endunless %}
{% endfor %}
Copy link

davidnormo commented Dec 14, 2014

+1 @carlo thanks!

Copy link

ahmadajmi commented Apr 19, 2016

Thanks @carlo

Copy link

suminb commented Oct 10, 2016

This is what I was looking for. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment