From b28724b4d4dfb68d2c3538c268cf40711c4e9660 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 1 Jun 2020 22:59:09 +0800 Subject: [PATCH] Hide the empty trending tags from panel. --- _includes/panel.html | 6 +++++- _includes/search-results.html | 2 +- _includes/{trending-tags.html => trending_tags.html} | 0 assets/js/data/cache-list.js | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) rename _includes/{trending-tags.html => trending_tags.html} (100%) diff --git a/_includes/panel.html b/_includes/panel.html index d6ae271..c09823a 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -45,18 +45,22 @@ {% endif %} + {% include trending_tags.html %} + + {% if trending_tags.size > 0 %}
+ {% endif %} diff --git a/_includes/search-results.html b/_includes/search-results.html index a11832d..519de3f 100644 --- a/_includes/search-results.html +++ b/_includes/search-results.html @@ -9,7 +9,7 @@