From ffad9e9871b4eca9c2537a9a5bcd87ea2d99cfaf Mon Sep 17 00:00:00 2001 From: thisLight Date: Wed, 30 Dec 2020 11:19:28 +0800 Subject: [PATCH] update theme --- themes/cmd/layout/includes/tags.swig | 9 +++++++++ themes/cmd/layout/tag.swig | 16 ++++++++++++---- themes/cmd/source/css/cmd.styl | 14 +++++++++++--- .../cmd/source/css/materialdesignicons.min.css | 2 +- 4 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 themes/cmd/layout/includes/tags.swig diff --git a/themes/cmd/layout/includes/tags.swig b/themes/cmd/layout/includes/tags.swig new file mode 100644 index 0000000..3d93ad6 --- /dev/null +++ b/themes/cmd/layout/includes/tags.swig @@ -0,0 +1,9 @@ +{% macro PostTags(post) %} +
+{% for k in Object.keys(post.tags.data) %} +
+ {{post.tags.data[k].name}} +
+ {% endfor %} +
+{% endmacro %} diff --git a/themes/cmd/layout/tag.swig b/themes/cmd/layout/tag.swig index ab1e280..a7c037f 100644 --- a/themes/cmd/layout/tag.swig +++ b/themes/cmd/layout/tag.swig @@ -1,19 +1,27 @@ {% extends 'includes/layout.swig' %} {% import "includes/paginator.swig" as P %} +{% import "includes/tags.swig" as T %} {% block body %} -

{{page.tag}}

+

{{page.tag}}