Turn on drafts

This commit is contained in:
Scott Shawcroft 2018-03-19 17:28:51 -07:00
parent 995fc703ba
commit f5e95ec81e
2 changed files with 24 additions and 4 deletions

View file

@ -1,10 +1,20 @@
github: [metadata]
encoding: UTF-8
kramdown:
input: GFM
hard_wrap: false
input: GFM
hard_wrap: false
future: true
jailed: false
theme: jekyll-theme-primer
gfm_quirks: paragraph_end
repository: adafruit/circuitpython-weekly-newsletter
collections:
drafts:
output: true
defaults:
-
scope:
path: ""
type: drafts
values:
layout: post

View file

@ -2,6 +2,16 @@
title: Adafruit CircuitPython Weekly Newsletter
---
{% for post in site.posts %}
[{{ post.title }}]({{ post.url }})
## Drafts
{{ site.posts | jsonify }}
{% assign sorted = site.drafts | sort: 'date' | reverse %}
{% for draft in sorted %}
[{{ draft.title }}]({{ draft.url }})
{% endfor %}
## Archive
{% for post in site.posts%}
[{{ post.title }}]({{ post.url }})
{% endfor %}