https://github.com/leothorp/jekyll-post
Generate a new post for a jekyll blog with frontmatter.
https://github.com/leothorp/jekyll-post
Last synced: 9 months ago
JSON representation
Generate a new post for a jekyll blog with frontmatter.
- Host: GitHub
- URL: https://github.com/leothorp/jekyll-post
- Owner: leothorp
- License: mit
- Created: 2021-09-25T01:01:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T22:29:21.000Z (over 2 years ago)
- Last Synced: 2024-04-29T21:41:48.494Z (about 2 years ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-post
Simple CLI for generating a new Jekyll blogpost timestamped at the current date.
### Installation
```
npm i -g @leothorp/jekyll-post
```
Now the cli will be globally available as `jp`. Usage:
```
jp -t "Post title" -c category1,category2
```
Alternatively, to start using it directly without the global npm installation:
```
npx @leothorp/jekyll-post -t "Post title" -c category1,category2
```
### Assumptions
Expects to be run in a directory containing a `./_posts` folder.
### CLI Options
`-t --title ` Title of the post. Should be wrapped in quotes. (Required)
`-c --categories ` Comma-separated list of categories. Category names cannot contain spaces.