lib/nanoc/base/source_data/site.rb in nanoc-3.3.2 vs lib/nanoc/base/source_data/site.rb in nanoc-3.3.3
- old
+ new
@@ -309,10 +309,13 @@
# Get items
@items = []
data_sources.each do |ds|
items_in_ds = ds.items
- items_in_ds.each { |i| i.identifier = File.join(ds.items_root, i.identifier) }
+ items_in_ds.each do |i|
+ i.identifier = File.join(ds.items_root, i.identifier)
+ i.site = self
+ end
@items.concat(items_in_ds)
end
end
# Loads this site’s layouts.