From 909b73b33fc325b82dfbe20cff2ac45a53e4fdc8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 9 Apr 2021 00:52:04 +0300 Subject: category.html should be an include, not a layout This is similar to posts.html. --- _includes/categories/category.html | 9 +++++++++ _layouts/category.html | 14 -------------- _layouts/note.html | 6 ------ 3 files changed, 9 insertions(+), 20 deletions(-) create mode 100644 _includes/categories/category.html delete mode 100644 _layouts/category.html delete mode 100644 _layouts/note.html diff --git a/_includes/categories/category.html b/_includes/categories/category.html new file mode 100644 index 0000000..78d5aa0 --- /dev/null +++ b/_includes/categories/category.html @@ -0,0 +1,9 @@ +

This is a list of posts in category "{{ include.category }}".

+{% if site.categories[include.category].size > 0 %} + +{% endif %} +

For a complete list of posts grouped by category, please see this page.

diff --git a/_layouts/category.html b/_layouts/category.html deleted file mode 100644 index 5be0ddc..0000000 --- a/_layouts/category.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default ---- -

{{ page.title }}

-
-

This is a list of posts in category "{{ page.category }}".

-{% if site.categories[page.category].size > 0 %} - -{% endif %} -

For a complete list of posts grouped by category, please see this page.

diff --git a/_layouts/note.html b/_layouts/note.html deleted file mode 100644 index 090100f..0000000 --- a/_layouts/note.html +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: default ---- -

{{ page.title }}

-
-{{ content }} -- cgit v1.2.3