PERF: Shrink mobile payload, don't render for noscript on mobile
This commit is contained in:
parent
1bcdade45f
commit
9f56381b0b
|
@ -1,3 +1,5 @@
|
|||
<%- unless mobile_view? %>
|
||||
|
||||
<% if @category %>
|
||||
<h1>
|
||||
<% if @category.parent_category %>
|
||||
|
@ -39,6 +41,8 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<%- end %>
|
||||
|
||||
<% if @rss %>
|
||||
<% content_for :head do %>
|
||||
<%= auto_discovery_link_tag(:rss, "#{Discourse.base_url}/posts.rss", title: I18n.t("rss_description.posts")) %>
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
<%= server_plugin_outlet "topic_header" %>
|
||||
<hr>
|
||||
|
||||
<%- unless mobile_view? %>
|
||||
|
||||
<% @topic_view.posts.each do |post| %>
|
||||
<div itemscope itemtype='http://schema.org/Article'>
|
||||
<% if (u = post.user) %>
|
||||
|
@ -54,6 +56,8 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
<% content_for :head do %>
|
||||
<%= auto_discovery_link_tag(@topic_view, {action: :feed, slug: @topic_view.topic.slug, topic_id: @topic_view.topic.id}, title: t('rss_posts_in_topic', topic: @topic_view.title), type: 'application/rss+xml') %>
|
||||
<%= raw crawlable_meta_data(title: @topic_view.title, description: @topic_view.summary, image: @topic_view.image_url) %>
|
||||
|
|
Loading…
Reference in New Issue