Class: Jekyll::Disqus::UI
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Disqus::UI
- Includes:
- Helper
- Defined in:
- lib/jekyll/disqus/tags.rb
Overview
Anchor tag where rendering the comment box.
Instance Method Summary collapse
-
#initialize(tag_name, text, tokens) ⇒ UI
constructor
A new instance of UI.
- #render(context) ⇒ Object
Methods included from Helper
#disabled_tag?, #page_disqus_id, #post_disqus_id, #post_selector
Constructor Details
#initialize(tag_name, text, tokens) ⇒ UI
Returns a new instance of UI.
11 12 13 14 |
# File 'lib/jekyll/disqus/tags.rb', line 11 def initialize(tag_name, text, tokens) super @text = text end |
Instance Method Details
#render(context) ⇒ Object
16 17 18 19 20 |
# File 'lib/jekyll/disqus/tags.rb', line 16 def render(context) return "" if disabled_tag?("ui", context) "<div id=\"disqus_thread\"></div>" end |