diff --git a/source/categories/index.md b/source/categories/index.md new file mode 100644 index 0000000..fa47444 --- /dev/null +++ b/source/categories/index.md @@ -0,0 +1,6 @@ +--- +title: 文章分类 +date: 2019-05-13 23:13:59 +type: categories +layout: categories +--- \ No newline at end of file diff --git a/themes/yilia/layout/categories.ejs b/themes/yilia/layout/categories.ejs new file mode 100644 index 0000000..de8f818 --- /dev/null +++ b/themes/yilia/layout/categories.ejs @@ -0,0 +1,25 @@ +
+

共计 <%= site.categories.length %> 个分类, <%= site.tags.length %> 个标签

+ <% if (site.categories.length){ %> + + <% } %> + <%- tagcloud({ + min_font: 16, + max_font: 35, + amount: 999, + color: true, + start_color: 'gray', + end_color: 'black', + }) %> +
\ No newline at end of file