This is a microsite that I often use to test out GitHub pages stuff.
To preview the website locally:
-
Install Ruby and Bundler if you don't have them already.
-
Install the jekyll-redirect-from gem:
$ gem install jekyll-redirect-from
cd
to the repository directory and run the following command:
$ cd crandmck.github.io
$ bundle install
Bundler will look in the Gemfile for which gems to install. The github-pages
gem includes the same version of Jekyll and other dependencies as used by GitHub Pages, so that your local setup mirrors GitHub Pages as closely as possible.
Run Jekyll using the following command:
$ bundle exec jekyll serve
Then, load http://localhost:4000/ on your browser.
Jekyll uses a variant of Markdown known as Kramdown.
Jekyll uses the Liquid template engine for templating.
You can use http://kramdown.gettalong.org/parser/gfm.html fenced code blocks for JavaScript; for example:
var express = require('express');
var app = express();
app.listen(3000);
The default GitHub Pages syntax highlighting has been disabled in `_config.yml to allow highlighting with prism.js.