Sha256: c1d63c5cef9b52707dd4f79743e96747d72cba085f4aae5a046e940a720888ac
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
module Jekyll class EpubBlock < Liquid::Block include Liquid::StandardFilters def initialize(tag_name, markup, tokens) super end def render(context) if context.registers[:site].config["epub"] super else "" end end end class NoEpubBlock < Liquid::Block include Liquid::StandardFilters def initialize(tag_name, markup, tokens) super end def render(context) if context.registers[:site].config["epub"] "" else super end end end end Liquid::Template.register_tag('epub', Jekyll::EpubBlock) Liquid::Template.register_tag('noepub', Jekyll::NoEpubBlock)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-epub-0.0.3 | lib/jekyll/tags/epub.rb |
jekyll-epub-0.0.2 | lib/jekyll/tags/epub.rb |
jekyll-epub-0.0.1 | lib/jekyll/tags/epub.rb |