From a819ac95eb6174d16292b1bcb157ed182531097e Mon Sep 17 00:00:00 2001 From: Jatin Sanghvi <20547963+JatinSanghvi@users.noreply.github.com> Date: Sat, 28 Dec 2019 00:58:02 -0800 Subject: [PATCH] Allow special characters in categories and tags --- _includes/panel.html | 4 ++-- _layouts/post.html | 4 ++-- tabs/categories.md | 4 ++-- tabs/tags.md | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/panel.html b/_includes/panel.html index d3b8737..27c7e49 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -61,8 +61,8 @@ {% for trend in trends %} {% assign count = count | plus: 1 %} - {% assign tag = trend | split: ":" | last %} - {{ tag | replace: '-', ' ' }} + {% assign tag = trend | split: ":" | last %} + {{ tag | replace: '-', ' ' }} {% if count >= MAX %} {% break %} {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index a379b5f..341fd04 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -20,7 +20,7 @@ layout: default {% if page.categories.size > 0 %}on{% endif %} {% for category in page.categories %} - {{ category }} + {{ category }} {%- unless forloop.last -%}, {%- endunless -%} {% endfor %} @@ -62,7 +62,7 @@ layout: default {% if page.tags.size > 0 %}
{% for tag in page.tags %} - {{- tag -}} diff --git a/tabs/categories.md b/tabs/categories.md index e76b9ca..3c1d82d 100644 --- a/tabs/categories.md +++ b/tabs/categories.md @@ -33,7 +33,7 @@ title: Categories {% else %} {% endif %} - {{ category_name }} + {{ category_name }} {% assign top_posts_size = site.categories[category_name] | size %} @@ -63,7 +63,7 @@ title: Categories