Created
August 31, 2011 04:24
-
-
Save destroytoday/1182818 to your computer and use it in GitHub Desktop.
Add a slug Liquid param to Jekyll's post class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Post | |
alias :super_to_liquid :to_liquid | |
def to_liquid | |
super_to_liquid.deep_merge({"slug" => slug}) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment