Class: Jekyll::LoadingLazy
- Inherits:
-
Object
- Object
- Jekyll::LoadingLazy
- Defined in:
- lib/jekyll-loading-lazy.rb,
lib/jekyll-loading-lazy/version.rb
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.process(content) ⇒ Object
8 9 10 11 |
# File 'lib/jekyll-loading-lazy.rb', line 8 def self.process(content) html = content.output content.output = (html) if (html) end |
.process?(doc) ⇒ Boolean
13 14 15 16 |
# File 'lib/jekyll-loading-lazy.rb', line 13 def self.process?(doc) (doc.is_a?(Jekyll::Page) || doc.write?) && doc.output_ext == ".html" || doc.permalink&.end_with?("/") end |