mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 17:59:20 +00:00
UX: Include message when crawler content is omitted (#26325)
To improve performance, we omit the basic-HTML version of pages when users are logged in, or when they are using a modern mobile device. This can be confusing when analysing the SEO of sites, so this commit adds a short static message when content is omitted.
This commit is contained in:
parent
f7b73f3d70
commit
4a7e69d8ee
@ -126,7 +126,8 @@
|
|||||||
<link rel="next" href="<%= @list.more_topics_url -%>">
|
<link rel="next" href="<%= @list.more_topics_url -%>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= t(:crawler_content_hidden) %>
|
||||||
<%- end %> <!-- include_crawler_content? -->
|
<%- end %> <!-- include_crawler_content? -->
|
||||||
|
|
||||||
<% if @rss %>
|
<% if @rss %>
|
||||||
|
@ -139,7 +139,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= build_plugin_html 'server:topic-show-after-posts-crawler' %>
|
<%= build_plugin_html 'server:topic-show-after-posts-crawler' %>
|
||||||
|
<% else %>
|
||||||
|
<%= t(:crawler_content_hidden) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% content_for :head do %>
|
<% content_for :head do %>
|
||||||
|
@ -481,6 +481,7 @@ en:
|
|||||||
next_page: "next page →"
|
next_page: "next page →"
|
||||||
prev_page: "← previous page"
|
prev_page: "← previous page"
|
||||||
page_num: "Page %{num}"
|
page_num: "Page %{num}"
|
||||||
|
crawler_content_hidden: "HTML content omitted because you are logged in or using a modern mobile device."
|
||||||
home_title: "Home"
|
home_title: "Home"
|
||||||
topics_in_category: "Topics in the '%{category}' category"
|
topics_in_category: "Topics in the '%{category}' category"
|
||||||
rss_posts_in_topic: "RSS feed of '%{topic}'"
|
rss_posts_in_topic: "RSS feed of '%{topic}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user