Sha256: f24adb46da86a27fb242a43fb2823eb031c4a412d356e6507b7f3b46f25953da

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

rules = [
  {
    user_agent: 'Googlebot',
    disallow: %w[
      tmp/*
      /something/dir/file_disallow.html
    ],
    allow: %w[
      allow/*
      /something/dir/file_allow.html
    ]
  },
  {
    user_agent: 'Googlebot-Image',
    disallow: %w[
      tmp/*
      /something/dir/file_disallow.html
    ],
    allow: %w[
      allow/*
      /something/dir/file_allow.html
    ]
  }
]

activate :robots, rules: rules, sitemap: 'http://example.com/sitemap.xml'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
middleman-robots-1.3.7 fixtures/server-app/config.rb
middleman-robots-1.3.6 fixtures/server-app/config.rb
middleman-robots-1.3.5 fixtures/server-app/config.rb