From f69262fbfa6ab633b71fded77f418680a8fe8751 Mon Sep 17 00:00:00 2001 From: Julien Deswaef Date: Sun, 29 Apr 2018 18:20:49 +0200 Subject: [PATCH] Update template to count icons since version 1.0 --- src/doc/_includes/icons/new.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/doc/_includes/icons/new.html b/src/doc/_includes/icons/new.html index eecd9e177..8cdd2b7d3 100644 --- a/src/doc/_includes/icons/new.html +++ b/src/doc/_includes/icons/new.html @@ -1,18 +1,16 @@
- {% assign icons_v1_0 = icons | version:1.0 %} - {% assign icons_v1 = icons | version:1.1 | concat: icons_v1_0 %} + {% assign version = 1.0 %} + {% assign icons_new = icons | where_exp:"icon", "icon.created >= version" | sort_by:'class' %} - + {% if page.navbar_active != "icons" %}
- You asked, {{ site.forkawesome.name }} delivers with {{ icons | version:site.forkawesome.minor_version | size }} shiny new icons in version {{ site.forkawesome.minor_version }}. + You asked, {{ site.forkawesome.name }} delivers with {{ icons_new | size }} shiny new icons in version {{ version }}. Want to request new icons? Here's how.
{% endif %}
- {% assign icons_new = icons | expand_aliases | version:1.0 | sort_by:'class' %} - {% for icon in icons_new %} {% endfor %}