Sha256: 8d1274ecc3938994a3efafcbc5557628a7c3ebbf303017d0be344dd22815a0b3
Contents?: true
Size: 434 Bytes
Versions: 17
Compression:
Stored size: 434 Bytes
Contents
# see http://www.robotstxt.org/robotstxt.html module Mill class Resource class Robots < Resource def build info = {} info['User-Agent'] = '*' info['Disallow'] = '/' unless @site.allow_robots info['Sitemap'] = @site.sitemap_resource.absolute_uri if @site.make_sitemap @content = info.map { |key, value| "#{key}: #{value}" }.join("\n") super end end end end
Version data entries
17 entries across 17 versions & 1 rubygems