让 Hexo 自动生成 Tag Cloud 标签云页面
在主题yilia
中,须在 theme/yilia/layout/_partial/article.ejs
下, div article-entry
中插入代码。
<div class="article-entry" itemprop="articleBody">
<% if (post.excerpt && index){ %>
<%- post.excerpt %>
<% } else { %>
<% if (page.path === "tags/index.html"){ %>
<引入 tags 页面的代码>
<% } %>
<%- post.content %>
<% } %>
</div>
<引入tags页面的代码>为:
<% if (page.path === "tags/index.html"){ %>
<hr>
<br>
<%- list_categories({
depth: 1,
}) %>
<div class="tags">
<%- tagcloud({
min_font: 16,
max_font: 35,
amount: 999,
color: true