Skip to content

Instantly share code, notes, and snippets.

@nrinaudo
Created June 6, 2016 21:26
Show Gist options
  • Save nrinaudo/2afed35b2c7f6c71aa01f14b31bf3160 to your computer and use it in GitHub Desktop.
Save nrinaudo/2afed35b2c7f6c71aa01f14b31bf3160 to your computer and use it in GitHub Desktop.
Jekyll sort on `sort` field issue
markdown: kramdown
highlighter: rouge
collections:
tut:
output: true
{% assign sorted_pages = (site.tut | sort: 'sort') %}
title layout sort
Title
tutorial
1

This is a test

title layout sort
Title
tutorial
2

This is a test

Configuration file: _config.yml
Source: /Users/nicolasrinaudo/dev/nrinaudo/test/jekyll
Destination: /Users/nicolasrinaudo/dev/nrinaudo/test/jekyll/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: stack level too deep in _layouts/tutorial.html
/Library/Ruby/Gems/2.0.0/gems/jekyll-3.1.6/lib/jekyll/renderer.rb:112: stack level too deep (SystemStackError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment