blog.honeypot.io
Creating a new blog post
rake new['awesome new post title']
Adding new images
- Switch into the blog directory and fetch the latest data
$ cd blog-honeypot.io
$ git checkout gh-pages
$ git pull origin gh-pages
- Create a new branch
$ git branch my-branch-name
$ git checkout my-branch-name
- Place your new images in the _assets directory!!
.
├── _assets
| ├── images
| | ├── my-new-image.jpg
| | └── ...
| ├── cover-images
| | ├── my-new-image.jpg
| | └── ...
| └── ...
└── ...
- Optimaze blog images
gulp
- 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
- Create a pull request on GitHub
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.