style intro page
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
@import "../common/000_vars.css.scss";
|
||||||
|
|
||||||
div#c-explore-posts {
|
div#c-explore-posts {
|
||||||
header {
|
header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -18,7 +20,7 @@ div#c-explore-posts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div#a-intro {
|
div#a-intro {
|
||||||
width: 60em;
|
width: 870px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module PostSets
|
|||||||
|
|
||||||
def posts
|
def posts
|
||||||
@posts ||= begin
|
@posts ||= begin
|
||||||
temp = ::Post.tag_match("#{tag_string} favcount:>10").paginate(page, :search_count => nil, :limit => 6)
|
temp = ::Post.tag_match("#{tag_string} favcount:>3").paginate(page, :search_count => nil, :limit => 5)
|
||||||
temp.all
|
temp.all
|
||||||
temp
|
temp
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<% @presenter.each do |tag, post_set| %>
|
<% @presenter.each do |tag, post_set| %>
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
<h2><%= link_to tag, posts_path(:tags => tag), :class => "tag-type-3" %></h2>
|
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
|
||||||
<%= post_set.presenter.post_previews_html(self) %>
|
<%= post_set.presenter.post_previews_html(self) %>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user