Class: Jekyll::WebmentionIO::QueueWebmentions

Inherits:
Generator
  • Object
show all
Defined in:
lib/jekyll/generators/queue_webmentions.rb

Instance Method Summary collapse

Instance Method Details

#generate(_ = nil) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/jekyll/generators/queue_webmentions.rb', line 18

def generate(_ = nil)
  if WebmentionIO.config.pause_lookups
    WebmentionIO.log 'msg', 'Looking up new webmentions is disabled.'
  else
    WebmentionIO.log 'msg', 'Collecting webmentions you’ve made. This may take a while.'
  end

  posts = WebmentionIO.config.documents.reject { |p| p.data['draft'] }

  gather_webmentions(posts)
end