aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins/production_tag.rb
blob: 9f870cf2137af55ca17b01bb353bb938dd282bd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Jekyll
  class ProductionTag < Liquid::Block

    def initialize(tag_name, markup, tokens)
      super
    end

    def render(context)
      if ENV['PRODUCTION'] then super else "" end
    end
  end
end

Liquid::Template.register_tag('production', Jekyll::ProductionTag)