FIX: not showing content on topics for mobile crawler
This commit is contained in:
parent
14a77aa1e0
commit
ecbbbbc98c
|
@ -11,7 +11,38 @@
|
|||
<%= render_google_universal_analytics_code %>
|
||||
<%= yield :head %>
|
||||
<style>
|
||||
img { max-width: 100%; width: auto; height: auto; }
|
||||
header img {
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
img { max-width: 100%; width: auto; height: auto; }
|
||||
|
||||
#main-outlet > div {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
footer nav a {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
footer nav {
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 98%;
|
||||
padding-left: 1%;
|
||||
}
|
||||
.topic-list > div > a {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.topic-list > div .posts {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.topic-list > div {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -25,9 +25,9 @@
|
|||
</a>
|
||||
<%= page_links(t) %>
|
||||
<% if (!@category || @category.has_children?) && t.category %>
|
||||
<span>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
||||
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
||||
<% end %>
|
||||
<span title='<%= t 'posts' %>'>(<a href="<%=t.last_post_url%>"><%= t.posts_count %></a>)</span>
|
||||
<span class='posts' title='<%= t 'posts' %>'>(<a href="<%=t.last_post_url%>"><%= t.posts_count %></a>)</span>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<%= server_plugin_outlet "topic_header" %>
|
||||
<hr>
|
||||
|
||||
<%- unless mobile_view? %>
|
||||
<%- if include_crawler_content? %>
|
||||
|
||||
<% @topic_view.posts.each do |post| %>
|
||||
<div itemscope itemtype='http://schema.org/Article'>
|
||||
|
|
Loading…
Reference in New Issue