This is the repo for my personal site, loganleger.com. It's powered by Jekyll. This is currently under development (and probably will always be).
- Add some tests for thor functionality
- Revised drafts workflow
Thor: Command Line Hotness
Thor is configured to provide some wonderful tools to make blogging easier. To list the available commands, use
thor list. To get help on a command, including its usage and parameters, use
thor help <command>.
||creates a new blank post with the name NAME in the
||lists all draft posts (files in
||lists all posts (files in
||posts (moves from
||deploys to S3/Cloudfront|
||check for dependencies|
Local Development: Guard + Foreman
Development is made nicer with Guard and Foreman. When a file changes (or a new gem is added), Guard rebuilds the site and loads it up at
http://localhost:4000. Foreman is used to manage the Guard and Jekyll server processes. To get everything running, type
Before you do anything, you'll need to install the dependencies. System utilities are handled by Homebrew, Ruby Gems by Bundler and JS/CSS by Bower. A Thor command to check dependencies is available:
How To Make A New Post
thor jekyll:draft "My New Post"
./_drafts/my_new_post.mdownuntil draft is finished and ready to post.
thor jekyll:post --latest
jekyll(Not necessary with Foreman + Guard set up.)
Custom Front Matter
default.html layout includes the description and keywords meta tags in the
head. They contain default values, but each post can manipulate those by adding the following custom front matter. In the absence of these keys in the YAML, the default values are used.
--- seo: description: A post about kittens, memes, and other things about the internet. keywords: kittens, memes, reddit, internet ---