Created
November 6, 2012 15:39
-
-
Save matthewowen/4025507 to your computer and use it in GitHub Desktop.
access raw content in jekyll
This file contains 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 RawContent < Generator | |
def generate(site) | |
site.posts.each do |post| | |
post.data['raw_content'] = post.content | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do it to all collections: