You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to also loop through all collections and pages instead of posts only?
I think it can be interesting :)
I tried to add
site.collections.each do |collection|
collection.docs.each do |post|
next if post.data['skip_amp'] == true
site.pages << AmpPost.new(site, site.source, File.join(dir, post.id), post)
end
end
But as my knowledge in ruby is super limited, it failed (collection.docs doesn't exist) so maybe you can see a better workaround?
Thanks
The text was updated successfully, but these errors were encountered:
Hi there,
Would it be possible to also loop through all collections and pages instead of posts only?
I think it can be interesting :)
I tried to add
But as my knowledge in ruby is super limited, it failed (collection.docs doesn't exist) so maybe you can see a better workaround?
Thanks
The text was updated successfully, but these errors were encountered: