~xdavidwu/xdavidwu.link

4600d20ce17478b8036debd6659b3765efc61887 — Michael Rose 7 years ago 29d43f5
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
2 files changed, 2 insertions(+), 2 deletions(-)

M _includes/category-list.html
M _includes/tag-list.html
M _includes/category-list.html => _includes/category-list.html +1 -1
@@ 11,7 11,7 @@
    <!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
  {% 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 %}

  <p class="page__taxonomy">
    <strong><i class="fa fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>

M _includes/tag-list.html => _includes/tag-list.html +1 -1
@@ 11,7 11,7 @@
    <!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
  {% 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 %}

  <p class="page__taxonomy">
    <strong><i class="fa fa-fw fa-tags" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].tags_label | default: "Tags:" }} </strong>