Last active
August 29, 2015 14:15
-
-
Save kellysutton/2195ac1f5ffc4b98bbf9 to your computer and use it in GitHub Desktop.
Public Drafts in Jekyll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: "Public Drafts in Jekyll" | |
date: 2015-02-18 00:00:00 | |
draft: true | |
--- | |
One of the things I like to do with more… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for post in site.posts limit:10 %} | |
{% unless post.draft %} | |
<item></item> | |
{% endunless %} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- head and all that good stuff --> | |
{% for post in site.posts %} | |
{% unless post.draft %} | |
<li>{% post.title %}</li> | |
{% endunless %} | |
{% endfor %} | |
<!-- footer and business --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment