mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-03 09:25:18 -04:00
FIX: not showing content on topics for mobile crawler
This commit is contained in:
parent
14a77aa1e0
commit
ecbbbbc98c
3 changed files with 35 additions and 4 deletions
app/views
|
@ -11,7 +11,38 @@
|
||||||
<%= render_google_universal_analytics_code %>
|
<%= render_google_universal_analytics_code %>
|
||||||
<%= yield :head %>
|
<%= yield :head %>
|
||||||
<style>
|
<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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
</a>
|
</a>
|
||||||
<%= page_links(t) %>
|
<%= page_links(t) %>
|
||||||
<% if (!@category || @category.has_children?) && t.category %>
|
<% 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 %>
|
<% 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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<%= server_plugin_outlet "topic_header" %>
|
<%= server_plugin_outlet "topic_header" %>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<%- unless mobile_view? %>
|
<%- if include_crawler_content? %>
|
||||||
|
|
||||||
<% @topic_view.posts.each do |post| %>
|
<% @topic_view.posts.each do |post| %>
|
||||||
<div itemscope itemtype='http://schema.org/Article'>
|
<div itemscope itemtype='http://schema.org/Article'>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue