2018-04-16 15:43:20 -04:00
|
|
|
<%= @robots_info[:header] %>
|
2020-10-09 07:51:24 -04:00
|
|
|
<% if Discourse.base_path.present? %>
|
2018-04-11 18:00:15 -04: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 14:16:51 -05:00
|
|
|
#
|
2018-04-16 15:43:20 -04:00
|
|
|
<% @robots_info[:agents].each do |agent| %>
|
|
|
|
User-agent: <%= agent[:name] %>
|
|
|
|
<% agent[:disallow].each do |path| %>
|
|
|
|
Disallow: <%= 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 %>
|
|
|
|
|
2022-04-12 09:33:59 -04:00
|
|
|
<%- if SiteSetting.enable_sitemap? && !SiteSetting.login_required? %>
|
|
|
|
Sitemap: <%= request.protocol %><%= request.host_with_port %>/sitemap.xml
|
|
|
|
<% end %>
|
|
|
|
|
2017-02-13 07:01:10 -05:00
|
|
|
<%= server_plugin_outlet "robots_txt_index" %>
|