From 49f327f636088f1078d7fe6c18d8741662dfc084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Tue, 14 May 2019 00:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=A1=B5=E9=9D=A2=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=96=BD=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/categories/index.md | 6 ++++++ themes/yilia/layout/categories.ejs | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 source/categories/index.md create mode 100644 themes/yilia/layout/categories.ejs 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