Permalink
Browse files

style: tag cloud page 整合标签云界面代码

Move code of page-tags.ejs into page.ejs
  • Loading branch information...
MOxFIVE committed Nov 21, 2015
1 parent a377a1d commit 4ba59b334024254cba58a3a3a26fed7864bdd4f7
@@ -29,9 +29,6 @@
<% } %>
<%- post.content %>
<% } %>
<% if (page.path === "tags/index.html"){ %>
<%- partial('_partial/page-tags') %>
<% } %>
</div>
<% if (index){ %>
<div class="article-info article-info-index">

This file was deleted.

Oops, something went wrong.
@@ -29,4 +29,67 @@
#container .article .article-title {
padding: 0;
}
</style>
</style>
<!-- Tag Cloud Page -->
<% if (page.path === "tags/index.html"){ %>
<hr>
<br>
<%- list_categories() %>
<div class="tags">
<%- tagcloud({
min_font: 16,
max_font: 35,
amount: 999,
color: true,
start_color: 'gray',
end_color: 'black',
}) %>
</div>
<style type="text/css">
.category-list li{
display: inline;
font-size: 1.2em;
margin-right: 1em;
line-height: 60px;
border: 1px solid lightgray;
padding: 6px;
}
.category-list a {
color: gray;
}
.category-list:hover a {
color: gray;
text-decoration: none;
font-weight: bold;
}
.category-list-count {
margin-left: 2px;
font-size: .9em;
}
.article-entry ul li:before{
display: none;
}
.article-inner {
text-align: center;
}
.tags {
max-width: 40em;
margin: 2em auto;
margin-top: 0em;
}
.tags a {
margin-right: 1em;
line-height: 65px;
border-bottom: 1px solid gray;
}
.tags a:hover {
font-weight: bold;
text-decoration: none;
}
.category-list-child {
display: none;
}
</style>
<% } %>

0 comments on commit 4ba59b3

Please sign in to comment.