2018-04-16 15:43:20 -04:00
|
|
|
<%= @robots_info[:header] %>
|
2018-04-11 18:00:15 -04:00
|
|
|
<% if Discourse.base_uri.present? %>
|
|
|
|
# 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 14:16:51 -05:00
|
|
|
#
|
2018-04-16 15:43:20 -04: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-11-02 01:39:47 -04:00
|
|
|
Noindex: <%= path %>
|
2018-04-11 16:05:02 -04:00
|
|
|
<% end %>
|
2017-02-13 07:01:10 -05:00
|
|
|
|
2018-03-15 17:10:45 -04:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
2017-02-13 07:01:10 -05:00
|
|
|
<%= server_plugin_outlet "robots_txt_index" %>
|