Sha256: c052916be99a8319c8a5a487445d58ecd4b0dbfdd4882aeebb2a07401ad049e6
Contents?: true
Size: 440 Bytes
Versions: 16
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true namespace :decidim do namespace :robots do desc "Overrides robots.txt with a custom one." task :replace, [] => :environment do actions :create_file, "public/robots.txt", <<~EOTASK # the following adds a rule for all bots to not index any page that contains a profile or search User-agent: * Disallow: /profiles/ Disallow: /search EOTASK end end end
Version data entries
16 entries across 16 versions & 1 rubygems