Skip to content

Instantly share code, notes, and snippets.

Created June 23, 2010 04:41
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# An example Jekyll Liquid tag. Utilizes the new plugin system.
# 1. Make a _plugins directory in your jekyll site, and put this class in a file there.
# 2. In anyone of your pages, you can use the 'render_time' liquid tag like so:
# {% render_time Page generated at: %}
module Jekyll
class RenderTimeTag < Liquid::Tag
def initialize(tag_name, text, tokens)
@text = text
def render(context)
"#{@text} #{}"
Liquid::Template.register_tag('render_time', Jekyll::RenderTimeTag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment