From e43991ee15f4166f0e88938d050b28e3d1d05afa Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 9 Apr 2021 22:52:32 +0300 Subject: categories: adjust links, optional archive link --- _includes/categories/categories.html | 2 +- _includes/categories/category.html | 4 +++- _includes/posts/posts.html | 2 +- _layouts/post.html | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_includes/categories/categories.html b/_includes/categories/categories.html index 05ef954..960423a 100644 --- a/_includes/categories/categories.html +++ b/_includes/categories/categories.html @@ -1,6 +1,6 @@ {% if site.categories.size != 0 %} {% for category in site.categories %} -

{{ category[0] }}

+

{{ category[0] }}


{% endif %} -

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

+{% if include.archive_link %} +

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

+{% endif %} diff --git a/_includes/posts/posts.html b/_includes/posts/posts.html index 724edc6..39dd858 100644 --- a/_includes/posts/posts.html +++ b/_includes/posts/posts.html @@ -6,7 +6,7 @@

{{ post.title }}

 Posted on {{ post.date | date: '%-d %B %Y' }} - {%- if post.category %} in  {{ post.category }}{% endif %} + {%- if post.category %} in  {{ post.category }}{% endif %}

{{ post.excerpt | markdownify }}
diff --git a/_layouts/post.html b/_layouts/post.html index 1af112a..6c4737d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,7 @@ layout: default

{{ page.title }}

 Posted on {{ page.date | date: '%-d %B %Y' }} - {%- if page.category %} in  {{ page.category }}{% endif %} + {%- if page.category %} in  {{ page.category }}{% endif %}

{{ content }}
-- cgit v1.2.3