Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My personal site
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_layouts
_plugins
_posts
_scss
about
images
js
.gitignore
404.html
Gemfile
Guardfile
Procfile
README.md
_config.yml
_references.md
apple-touch-icon-114x114-precomposed.png
apple-touch-icon-144x144-precomposed.png
apple-touch-icon-57x57-precomposed.png
apple-touch-icon-72x72-precomposed.png
apple-touch-icon-precomposed.png
apple-touch-icon.png
atom.xml Link up atom feed
component.json
favicon.ico
favicon.png
humans.txt
index.html
jekyll.thor
robots.txt
site.scss

README.md

loganleger.com

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).

TODO

  • Analytics
  • 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>.

Command Functionality
thor jekyll:draft NAME creates a new blank post with the name NAME in the ./_drafts folder (and makes that folder if it doesn't exist)
thor jekyll:drafts lists all draft posts (files in ./drafts)
thor jekyll:posts lists all posts (files in ./posts)
thor jekyll:post [FILE] posts (moves from ./drafts to ./posts and renames file with timestamp) a draft with the given file path FILE, or posts the latest draft with the --latest or -l flag, or gives a list of drafts to chose from
thor jekyll:publish deploys to S3/Cloudfront
thor jekyll:dependencies 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 foreman start.

Bootstrap

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: thor jekyll:dependencies.

How To Make A New Post

  1. thor jekyll:draft "My New Post"
  2. Edit ./_drafts/my_new_post.mdown until draft is finished and ready to post.
  3. thor jekyll:post --latest
  4. jekyll (Not necessary with Foreman + Guard set up.)
  5. thor jekyll:publish

Custom Front Matter

The 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
---
Something went wrong with that request. Please try again.