Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Automating the creation of the post directory #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GregBorrelly
Copy link

I plan to write my posts via PRs, every time I need to add a post, I need to create a post directory, index.md etc. I thought it would be a good idea to automate this to a certain extent. What do you think ?

New Command:
npm run post [post-tile]

Example usage:
npm run post the-latest-and-greatest

this creates a directory inside posts named 2018-11-18--the-latest-and-greatest with an index.md file inside of it containing:

---
title:''
cover:''
author:''
---

@shiruken1
Copy link

Sounds awesome! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants