From 3d51148cf2f255133450716b8b65f823db226684 Mon Sep 17 00:00:00 2001 From: davegandy Date: Thu, 6 Jun 2013 15:22:06 -0230 Subject: [PATCH] fixing aliases text showing up when it shouldn't on icon pages --- source/_layouts/icon.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_layouts/icon.html b/source/_layouts/icon.html index 398876c8f..83723acde 100644 --- a/source/_layouts/icon.html +++ b/source/_layouts/icon.html @@ -25,7 +25,8 @@ relative_path: ../../ {% for category in page.icon.categories %} {{ category }}{% unless forloop.last %},{% endunless %} {% endfor %} - {% if page.icon.aliases | size == 0 %} + {% assign icon_alias_count = page.icon.aliases | size %} + {% if icon_alias_count > 0 %} · Aliases: {% for alias in page.icon.aliases %} icon-{{ alias }}{% unless forloop.last %},{% endunless %}