Sha256: 0220bc1afb551a2cbf3b61cea7c1b077133ece14a650a1e7d027a7fa8552552a
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true require "jekyll" require "liquid" module Jekyll module Disqus class Tag < Liquid::Tag def initialize(tag_name, txt, tokens) super end def render(context) template.render!(context) end private def template @template ||= Liquid::Template.parse(template_content) end def template_content File.read(File.expand_path("./template.html", File.dirname(__FILE__))) end end end end Liquid::Template.register_tag("disqus", Jekyll::Disqus::Tag)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disqus-for-jekyll-1.0.5 | lib/disqus-for-jekyll.rb |