Permalink
Browse files

style: translate tag cloud page

  • Loading branch information...
MOxFIVE committed Apr 24, 2016
1 parent 5b8b956 commit e8de63242dbeff039c00ebac0c1401228515f869
View
@@ -39,4 +39,10 @@ tooltip:
go2bottom: 转到底部
copyPath: 点击复制文章链接
Hexo: "快速、简洁且高效的博客框架"
Yelee: 简而不减 Hexo 双栏博客主题
Yelee: 简而不减 Hexo 双栏博客主题
tag_cloud:
already: 已有
categories: 个分类,
total: 共计
tags: 个标签
View
@@ -40,4 +40,10 @@ tooltip:
go2bottom: Go to Bottom
copyPath: "Copy Article's Link & Author"
Hexo: "A fast, simple & powerful blog framework"
Yelee: Another simple and elegant theme for Hexo
Yelee: Another simple and elegant theme for Hexo
tag_cloud:
already: " "
categories: Categories,
total: " "
tags: Tags
View
@@ -39,4 +39,10 @@ tooltip:
go2bottom: 转到底部
copyPath: 点击复制文章链接
Hexo: "快速、简洁且高效的博客框架"
Yelee: 简而不减 Hexo 双栏博客主题
Yelee: 简而不减 Hexo 双栏博客主题
tag_cloud:
already: 已有
categories: 个分类,
total: 共计
tags: 个标签
View
@@ -39,4 +39,10 @@ tooltip:
go2bottom: 轉到底部
copyPath: 點擊複製文章鏈接
Hexo: "快速、簡潔且高效的博客框架"
Yelee: 簡而不減 Hexo 雙欄博客主題
Yelee: 簡而不減 Hexo 雙欄博客主題
tag_cloud:
already: 已有
categories: 個分類,
total: 共計
tags: 個標籤
View
@@ -39,4 +39,10 @@ tooltip:
go2bottom: 轉到底部
copyPath: 點擊複製文章鏈接
Hexo: "快速、簡單且強大的網誌框架"
Yelee: 簡而不減 Hexo 雙欄網誌主題
Yelee: 簡而不減 Hexo 雙欄網誌主題
tag_cloud:
already: 已有
categories: 個分類,
total: 共計
tags: 個標籤
View
@@ -1,110 +1,21 @@
<style>
.article-meta {
display: none;
}
#container .article .article-title {
padding-right: 0;
}
.article-meta { display: none; }
#container .article .article-title { padding-right: 0; }
.article-header {
padding: 0;
padding-top: 26px;
border-left: none;
text-align: center;
}
.article-header:hover {
border-left: none;
}
.article-title {
font-size: 1.6em
}
.article-meta {
display: none;
}
.article-entry hr {
margin: 0;
}
#container .article-info-post.article-info {
display: none;
}
#container .article .article-title {
padding: 0;
}
.article-header:hover { border-left: none; }
.article-title { font-size: 1.6em }
.article-entry hr { margin: 0;}
.article-meta,
#container .article-info-post.article-info { display: none;}
#container .article .article-title { padding: 0; }
</style>
<% if (page.path === "tags/index.html"){ %>
<!-- Tag Cloud Page -->
<hr>
<br>
<%- list_categories({
depth: 1,
}) %>
<p class="count"></p>
<div class="tags">
<%- tagcloud({
min_font: 16,
max_font: 35,
amount: 999,
color: true,
start_color: 'gray',
end_color: 'black',
}) %>
</div>
<style>
.category-list li{
display: inline-block;
margin: 0 1em .5em 0;
padding: 4px;
border: 1px solid lightgray;
font-size: 1.2rem;
}
.category-list a {
color: gray;
}
.category-list-item:hover a {
color: gray;
text-decoration: none;
}
.category-list-count {
margin-left: 2px;
font-size: .9rem;
}
.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;
white-space: nowrap;
}
.tags a:hover {
border-bottom: 2px solid black;
text-decoration: none;
font-style: italic;
}
#count > span {
margin: auto .2em;
font-weight: bold;
}
</style>
<!-- Count tags and categories -->
<p id="count">
已有<span><script>document.write($(".category-list-item").length)</script></span>个分类,
共计<span><script>document.write($(".tags > a").length)</script></span>个标签。
</p>
<script>
$('#count').appendTo('.count');
</script>
<%- partial('tag-cloud-page') %>
<% } %>
@@ -0,0 +1,65 @@
<hr>
<br>
<%- list_categories({depth: 1}) %>
<p class="count"></p>
<div class="tags">
<%- tagcloud({
min_font: 16,
max_font: 35,
amount: 999,
color: true,
start_color: 'gray',
end_color: 'black',
}) %>
</div>
<style>
.category-list li{
display: inline-block;
margin: 0 1em .5em 0;
padding: 4px;
border: 1px solid lightgray;
font-size: 1.2rem;
}
.category-list a { color: gray; }
.category-list-item:hover a {
color: gray;
text-decoration: none;
}
.category-list-count {
margin-left: 2px;
font-size: .9rem;
}
.article-entry ul li:before{ display: none; }
.article-inner { text-align: center; }
.tags {
max-width: 42em;
margin: 2em auto;
margin-top: 0em;
}
.tags a {
margin-right: 1em;
line-height: 65px;
border-bottom: 1px solid gray;
white-space: nowrap;
transition: border-bottom .5s;
}
.tags a:hover {
border-bottom: 3px dotted gray;
text-decoration: none;
}
#count > span {
margin: auto .2em;
font-weight: bold;
}
</style>
<!-- Count tags and categories -->
<p id="count">
<%= __('tag_cloud.already') %><span><script>document.write($(".category-list-item").length)</script></span><%= __('tag_cloud.categories') %>
<%= __('tag_cloud.total') %><span><script>document.write($(".tags > a").length)</script></span><%= __('tag_cloud.tags') %>
</p>
<script>
$('#count').appendTo('.count');
</script>

0 comments on commit e8de632

Please sign in to comment.