2018-04-16 14:43:20 -05:00
|
|
|
<%= @robots_info[:header] %>
|
2020-10-09 06:51:24 -05:00
|
|
|
<% if Discourse.base_path.present? %>
|
2018-04-11 17:00:15 -05:00
|
|
|
# This robots.txt file is not used. Please append the content below in the robots.txt file located at the root
|
|
|
|
<% end %>
|
2013-02-05 13:16:51 -06:00
|
|
|
#
|
2018-04-16 14:43:20 -05:00
|
|
|
<% @robots_info[:agents].each do |agent| %>
|
|
|
|
User-agent: <%= agent[:name] %>
|
|
|
|
<%- if agent[:delay] -%>
|
|
|
|
Crawl-delay: <%= agent[:delay] %>
|
|
|
|
<%- end -%>
|
|
|
|
<% agent[:disallow].each do |path| %>
|
|
|
|
Disallow: <%= path %>
|
2018-04-11 15:05:02 -05:00
|
|
|
<% end %>
|
2017-02-13 06:01:10 -06:00
|
|
|
|
2018-03-15 16:10:45 -05:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
2017-02-13 06:01:10 -06:00
|
|
|
<%= server_plugin_outlet "robots_txt_index" %>
|