https://github.com/iansinnott/jekyll-post
A tool for managing Jekyll from the command line
https://github.com/iansinnott/jekyll-post
Last synced: 10 months ago
JSON representation
A tool for managing Jekyll from the command line
- Host: GitHub
- URL: https://github.com/iansinnott/jekyll-post
- Owner: iansinnott
- Created: 2014-06-27T22:41:58.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T00:54:06.000Z (over 10 years ago)
- Last Synced: 2025-04-09T06:36:23.761Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Post
#### A simple command line helper for Jekyll
## To do
- Add drafting functionality
`$ post draft ` Should create a draft post that will be stored under `drafts`. `$ post publish ` to prepend the date to the file and move it to to `_posts`. `$ post unpublish ` could be an option as well.
## Usage
Create a post:
`post Some Post Title`
List all posts
`post list`
Edit a post
`post edit [some-post-title]`
Publish your blog
`post publish`
## Installation
If you have npm:
`npm install -g jekyll-post`
If you don't have npm, you will need to install it via [Node](http://nodejs.org/). Either download it from [the Node website](http://nodejs.org/) or install it via the command line. The latter will depend on your system, but here's a guess at what might work for you immediately:
Mac (with Homebrew):
`brew install node`
Ubuntu:
Here's a [great installation article from Digital Ocean.][do]
[do]: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
## Configuration
jekyll-post requires a `.postrc` file in your root directory. This file is necessary to tell jekyll-post where your Jekyll blog is located on your computer. Here's an example of `~/.postrc`:
```
{
"source": "/path/to/jekyll"
}
```
Enjoy.