Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Proposal : create new post command #283

Closed
k94ll13nn3 opened this issue Dec 4, 2015 · 2 comments
Closed

Proposal : create new post command #283

k94ll13nn3 opened this issue Dec 4, 2015 · 2 comments

Comments

@k94ll13nn3
Copy link

Following #282, I thought it may be a good idea to have a pretzel command that will produce a new empty post file with a title that the user will provide, a file name using the YEAR-MONTH-DATE-TITLE.md format and a basic Yaml font matter.

Example

pretzel.exe newpost "A new post in Pretzel"

will produce 2015-12-04-a-new-post-in-pretzel.md with the following font matter :


---
layout: post
title: "A new post in Pretzel"
date: 2015-12-04 21:00:00 +0100
comments: true

---

Not sure on what font matter could be included by default.

What do you think about this ?

@laedit
Copy link
Member

laedit commented Dec 5, 2015

Good idea.
About the front matter, if the date is in the path it is not needed as date variable.

@laedit
Copy link
Member

laedit commented Dec 14, 2015

Fixed with #284.

@laedit laedit closed this as completed Dec 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants