8legged

Jekyll and Liquid

A few good resources for Shopify’s Liquid template language are this guide and this Liquid Reference.


You can update your site name, avatar and other options using the _config.yml file in the root of your repository
_config.yml

Highlighting Code

To find the appropriate identifier to use for the language you want to highlight, look for the “short name” on Pygments’ lexers page or the Rouge wiki.

Highlighted Code Example
1
2
3
4
# ruby
def foo
  puts 'foo'
end
An embeded Gist


Highlighted Code Example
1
2
3
4
5
6
7
8
9
// javascript
var num = 1;
var newNum = ++num;

newNum;
2

num;
2

For more information head over to the Jekyll Now repository on GitHub.

Post written on May 11, 2015
Post written on 2015-05-11 00:00:00 -0700