From reading the documentation Jekyll\'s template data one might think that the way to access un-rendered content would be page.content; but as far as I can tel
# frozen_string_literal: true
module RawContent
class Generator < Jekyll::Generator
def generate(site)
site.posts.docs.each do |post|
post.data['raw_content'] = post.content
end
end
end
end