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

Proposal : create new post command #283

@k94ll13nn3

Description

@k94ll13nn3

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions