blog.honeypot.io

Creating a new blog post

rake new['awesome new post title']

Adding new images

  1. Switch into the blog directory and fetch the latest data
$ cd blog-honeypot.io
$ git checkout gh-pages
$ git pull origin gh-pages
  1. Create a new branch
$ git branch my-branch-name
$ git checkout my-branch-name
  1. Place your new images in the _assets directory!!
.
├── _assets
|   ├── images
|   |   ├── my-new-image.jpg
|   |   └── ...
|   ├── cover-images
|   |   ├── my-new-image.jpg
|   |   └── ...
|   └── ...
└── ...
  1. Optimaze blog images
gulp
  1. Add the new images to the repository
$ git add _assets/cover-images/my-new-image.jpg _assets/images/my-new-image.jpg
$ git add assets/cover-images/my-new-image.jpg assets/images/my-new-image.jpg
$ git commit -am 'add new images for the new blog post'
$ git push origin my-branch-name
  1. Create a pull request on GitHub screen shot 2016-11-03 at 11 05 49

Install dependencies

# required for image optimization
$ brew install imagemagick
$ brew install graphicsmagick

$ bundle install
$ npm install

Starting in development

bundle exec jekyll serve

Want to double test your change before putting live?

Use the staging environment staging-blog-honeypot.herokuapp.com

all changes pushed to the master branch are automatically deployed to Heroku by Travis-CI and can be visible on staging-blog-honeypot.herokuapp.com

After your changes have been QA tested merge them into default gh-pages branch for deployment to the live blog.