Sha256: 50651ab29b5581369031086e855d57b1b198c0f4f6ad97a225336398152faba1

Contents?: true

Size: 359 Bytes

Versions: 7

Compression:

Stored size: 359 Bytes

Contents

collection :articles,
  where: proc { |resource|
    uri_match resource.url, 'blog/{year}-{month}-{day}-{title}.html'
  }

collection :tags,
  where: proc { |resource|
    resource.data.tags
  },
  group_by: proc { |resource|
    if resource.data.tags.is_a? String
      resource.data.tags.split(',').map(&:strip)
    else
      resource.data.tags
    end
  }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
middleman-core-4.0.0.rc.1 fixtures/collections-app/config.rb
middleman-core-4.0.0.beta.2 fixtures/collections-app/config.rb
middleman-core-4.0.0.beta.1 fixtures/collections-app/config.rb
middleman-core-4.0.0.alpha.6 fixtures/collections-app/config.rb
middleman-core-4.0.0.alpha.5 fixtures/collections-app/config.rb
middleman-core-4.0.0.alpha.4 fixtures/collections-app/config.rb
middleman-core-4.0.0.alpha.3 fixtures/collections-app/config.rb