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