标签云

This commit is contained in:
结发受长生
2018-05-11 17:37:49 +08:00
parent 368ea5915b
commit 5654d3f6db
5 changed files with 40 additions and 47 deletions
@@ -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>