blob: 271a65083f452562eb0d31331fe6f49ed11f4b01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# A custom block for "extra" content to put at the bottom of pages.
# This will appear below the two-column layout pages normally have.
module Liquid
class ExtraBlock < Liquid::Block
alias :super_render :render
def initialize(tag_name, identifier, tokens)
super
end
def render(context)
context.environments.first["page"]["extra"] = super_render(context)
''
end
end
end
puts "registering new extra template"
Liquid::Template.register_tag('extra', Liquid::ExtraBlock)
|