标签云
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<% if (theme.tagcloud) { %>
|
||||
<section class="widget">
|
||||
<h3 class="widget-hd"><strong>热门标签</strong></h3>
|
||||
<%- partial('_widget/tags') %>
|
||||
<%- partial('_widget/tags_cloud') %>
|
||||
</section>
|
||||
<% } %>
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<!-- 文章标签 -->
|
||||
<div class="widget-bd tag-wrap">
|
||||
<%
|
||||
site.tags.forEach(function (tag, index) {
|
||||
if (index < 39) {
|
||||
%>
|
||||
<a class="tag-item" href="<%= url_for(tag.path) %>" title="<%= tag.name %>"><%- tag.name %> (<%- tag.length %>)</a>
|
||||
<%
|
||||
}
|
||||
});
|
||||
%>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- 标签云 -->
|
||||
<div class="tags-cloud">
|
||||
<%- tagcloud({
|
||||
min_font: 14,
|
||||
max_font: 30,
|
||||
amount: 999,
|
||||
color: true,
|
||||
start_color: '#e87474',
|
||||
end_color: '#524ac5',
|
||||
}) %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user