From 0a9ad5d24395e7985d99265747b511ce2b3eee28 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 4 Sep 2017 21:04:18 -0400 Subject: [PATCH] Fix Liquid errors when in `error_mode: strict` Liquid does not allow parenthesis, remove them to fix Liquid Exception: Liquid syntax error "Expected dotdot but found pipe" in `tag-list.html` and `category-list.html` Close #1223 --- _includes/category-list.html | 2 +- _includes/tag-list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/category-list.html b/_includes/category-list.html index 039d5e2e..c1f81a56 100644 --- a/_includes/category-list.html +++ b/_includes/category-list.html @@ -11,7 +11,7 @@ {% endcomment %} {% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} - {% assign category_hashes = (page_categories | split: ',' | sort:0) %} + {% assign category_hashes = page_categories | split: ',' | sort %}

{{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} diff --git a/_includes/tag-list.html b/_includes/tag-list.html index 0cea2113..dd668281 100644 --- a/_includes/tag-list.html +++ b/_includes/tag-list.html @@ -11,7 +11,7 @@ {% endcomment %} {% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} - {% assign tag_hashes = (page_tags | split: ',' | sort:0) %} + {% assign tag_hashes = page_tags | split: ',' | sort %}

{{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }}