Skip to content

Instantly share code, notes, and snippets.

@1syo
Created March 29, 2013 13:30
Show Gist options
  • Save 1syo/5270858 to your computer and use it in GitHub Desktop.
Save 1syo/5270858 to your computer and use it in GitHub Desktop.
module Jekyll
class Foo < Liquid::Tag
def render(context)
context.registers[:site].config["your_config_var"]
end
end
end
Liquid::Template.register_tag('foo', Jekyll::Foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment