aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/categories
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-09 22:52:32 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-09 22:52:32 +0300
commite43991ee15f4166f0e88938d050b28e3d1d05afa (patch)
tree2a46252986bea74a89753b6f036c72f0f04ad3ae /_includes/categories
parentnavbar: describe the workarounds (diff)
downloadjekyll-theme-e43991ee15f4166f0e88938d050b28e3d1d05afa.tar.gz
jekyll-theme-e43991ee15f4166f0e88938d050b28e3d1d05afa.zip
categories: adjust links, optional archive link
Diffstat (limited to '_includes/categories')
-rw-r--r--_includes/categories/categories.html2
-rw-r--r--_includes/categories/category.html4
2 files changed, 4 insertions, 2 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 %}
- <h1><a class="category" href="{{ '/categories/' | relative_url }}{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1>
+ <h1><a class="category" href="{{ '/' | relative_url }}{{ category[0] | slugify: 'pretty' }}/">{{ category[0] }}</a></h1>
<hr/>
<ul>
{% for post in category[1] %}
diff --git a/_includes/categories/category.html b/_includes/categories/category.html
index 78d5aa0..f7b7a8c 100644
--- a/_includes/categories/category.html
+++ b/_includes/categories/category.html
@@ -6,4 +6,6 @@
{% endfor %}
</ul>
{% endif %}
-<p>For a complete list of posts grouped by category, please see <a href="{{ '/all/' | relative_url }}">this page</a>.</p>
+{% if include.archive_link %}
+ <p>For a complete list of posts grouped by category, please see <a href="{{ include.archive_link | relative_url }}">this page</a>.</p>
+{% endif %}