Class: JekyllNotion::CollectionGenerator
Instance Method Summary
collapse
#initialize, #resource_id
Instance Method Details
#collection ⇒ Object
16
17
18
|
# File 'lib/jekyll-notion/generators/collection_generator.rb', line 16
def collection
@site.collections[@notion_resource.collection_name]
end
|
#generate ⇒ Object
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/jekyll-notion/generators/collection_generator.rb', line 5
def generate
@notion_resource.fetch.each do |page|
next if file_exists?(make_path(page))
collection.docs << make_doc(page)
log_new_page(page)
end
@plugin.collections[@notion_resource.collection_name] = collection
end
|