lib/cloudcannon-jekyll/generator.rb
# Add _path to each collection config
Add _path to each collection config
Add _path to each collection config
def add_collection_paths(collections_config)
      collections_config.each do |key, collection|
        next if collection.key?("_path")
        collection["_path"] = File.join(collections_dir, "_#{key}").sub(%r!^\/+!, "")
      end
    end
def add_collection_paths ( collections_config ) collections_config . each do | key , collection | next if collection . key? ( "_path" ) collection [ "_path" ] = File . join ( collections_dir , "_#{key}" ) . sub ( %r! ^ \/ + ! , "" ) end end
Add _path to each collection config
Add _path to each collection config
collections_config
<not_specific>