From c244ba7d4022da9be6071e33a37b715ed95c13c5 Mon Sep 17 00:00:00 2001 From: Yitao Yao Date: Tue, 3 Oct 2017 21:56:46 +0800 Subject: [PATCH] fix tag count missing --- _includes/_macro/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/_macro/sidebar.html b/_includes/_macro/sidebar.html index b5d0b9a30f..bab69214fa 100644 --- a/_includes/_macro/sidebar.html +++ b/_includes/_macro/sidebar.html @@ -64,7 +64,7 @@ {% endif %} - {% if site.tags.length > 0 %} + {% if site.tags.size > 0 %} {% assign tagsPageQuery = site.pages | where_exp: 'page', 'page.type == "tags"' %} {% if tagsPageQuery.size > 0 %} {% assign hasTagsPage = true %}