aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/categories.html18
1 files changed, 12 insertions, 6 deletions
diff --git a/_includes/categories.html b/_includes/categories.html
index 7c91a93..60a6ed6 100644
--- a/_includes/categories.html
+++ b/_includes/categories.html
@@ -10,7 +10,10 @@
{% assign categories = "" | split:"" %}
{% for article in articles_with_categories %}
- {% assign categories = categories | push:article.category %}
+ {% assign article_categories = article.category | split:"," %}
+ {% for article_category in article_categories %}
+ {% assign categories = categories | push:article_category %}
+ {% endfor %}
{% endfor %}
{% assign unique_categories = categories | sort | uniq %}
@@ -20,11 +23,14 @@
</h2>
<ul>
{% for article in articles_with_categories %}
- {% if category == article.category %}
- <li>
- <a href="{{ article.url | relative_url }}">{{ article.title | escape }}</a> - {% include i18n-date.html date=article.date %}
- </li>
- {% endif %}
+ {% assign article_categories = article.category | split:"," %}
+ {% for article_category in article_categories %}
+ {% if category == article_category %}
+ <li>
+ <a href="{{ article.url | relative_url }}">{{ article.title | escape }}</a> - {% include i18n-date.html date=article.date %}
+ </li>
+ {% endif %}
+ {% endfor %}
{% endfor %}
</ul>
{% endfor %}