Skip to content

Commit 07c087e

Browse files
authored
Merge pull request #12 from tynn/issue-8-data
Fix #8: Iterate over pages clone in generator
2 parents 1e24af2 + 2376abd commit 07c087e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll/pdf/generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Generator < Jekyll::Generator
66

77
def generate(site)
88
# Loop through pages & documents and build PDFs
9-
[site.pages, site.documents].each do |items|
9+
[site.pages.clone, site.documents].each do |items|
1010
items.each do |item|
1111
site.pages << Document.new(site, site.source, item) if item.data['pdf']
1212
end

0 commit comments

Comments
 (0)