No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_includes
_layouts
_posts
assets
.gitignore
CNAME
Gemfile
Gemfile.lock
LICENSE
README.md
_config.yml
about.md
articles.md
feed.xml
gulpfile.js
index.html
keybase.txt
package-lock.json
package.json
preview.jpg

README.md

Chris Bracken's blog

Live version at [https://chris.bracken.jp][https://chris.bracken.jp].

Pre-requisites

  • Install ruby 2.4 or later: brew install ruby
  • Install jekyll: gem install jekyll --user-install
  • Install bundler: gem install bundler --user-install
  • Install node.js: I prefer to use nvm for this, since I prefer user-local installs.

Since we're using --user-install, we'll need to add the local rubygems bin/ directory to the path. This works:

if which ruby >/dev/null && which gem >/dev/null; then
  PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi

Installation

Clone and prepare the repo:

git clone git@github.com:cbracken/cbracken.github.io.git
cd cbracken.github.io
npm install
bundler install

Starting a dev server

./node_modules/gulp/bin/gulp.js

Publishing a new post

vim _posts/YYYY-MM-DD-name-of-post.md
git add _posts/YYYY-MM-DD-name-of-post.md
git commit -m "Add YYYY-MM-DD Title of Post
git push

Thanks

Thanks to Brian Maier Jr. for his excellent Long Haul theme for Jekyll.