Configure Default Template for Drafts #1292

Closed
mikegreiling opened this Issue Jul 10, 2013 · 3 comments

3 participants

@mikegreiling

I often like to draft my blogposts in vanilla Markdown without messing around with YAML front-matter until publication.

Jekyll does a good job of inferring the title from the filename and the date from the date-modified metadata, but it doesn't use a default template unless you define one in the front-matter like so:

---
layout: post
---

I think allowing the definition of a default template for drafts would be incredibly helpful in streamlining the draft writing process.

@parkr
Jekyll member

We can definitely offer some defaults (à la #969) but you will still need the ---. We don't want to tell you the _drafts folder can only be used for our drafts, so an empty YAML front-matter at the top will still be needed.

@penibelst
Jekyll member

@mikegreiling Try front-matter defaults.

@parkr
Jekyll member

Front-matter defaults should work for you here!

@parkr parkr closed this May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment