This repo contains a basic template for an SEO-friendly two-column blog-style website using the jekyll static website generator. The template is ready for customization and deployment on Heroku's Bamboo stack. Includes sane defaults for page caching, keywords, and canonical URLs.
Clone the repo:
$ git clone git@github.com:eurekaoverdrive/heroku-jekyll-blog.git
Navigate to the new directory and install all required Gems
$ bundle install
Edit _config.yml
, content pages, layouts, includes, and application.rb
settings as desired.
Add all files to a new Git repo:
$ git init .
$ git add -A
$ git commit -m "Initial commit"
Create a new Heroku application:
$ heroku create yourappname
Push the master Git branch to Heroku:
$ git push heroku master
Open your new Codex:
$ heroku open
The included Rakefile includes several commands that make life easier:
Create a draft post:
$ rake draft["Post Title"]
When you're ready to publish, move the file into the "_posts" folder.
Preview the website locally on your computer:
$ rake dev
This command runs jekyll --server --auto
, which allows you to preview the site at http://localhost:5000.
Compile and commit the latest changes:
$ rake generate
This command runs jekyll
, git add -A
, and git commit -m "Committing latest jekyll build"
.
Push the compiled site to Heroku:
$ rake deploy
This command runs git push heroku master
, which will publish the site.
Enjoy!