aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/categories
diff options
context:
space:
mode:
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 %}