Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ForkAwesome/Fork-Awesome.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/doc
diff options
context:
space:
mode:
authorJulien Deswaef <judeswae@thoughtworks.com>2018-04-29 19:20:49 +0300
committerJulien Deswaef <judeswae@thoughtworks.com>2018-04-29 19:20:49 +0300
commitf69262fbfa6ab633b71fded77f418680a8fe8751 (patch)
tree432719cc79bf4ea69e1c7cb8428df2321c9a1083 /src/doc
parent94826c83a917a3cac25480a1685bf9cc4412fd71 (diff)
Update template to count icons since version 1.0
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/_includes/icons/new.html10
1 files 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 @@
<section id="new">
- {% 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' %}
- <h2 class="page-header">{{ icons_v1 | size }} New Icons since {{ site.forkawesome.major_version }}.0.0</h2>
+ <h2 class="page-header">{{ icons_new | size }} New Icons since {{ version }}</h2>
{% if page.navbar_active != "icons" %}
<div class="margin-botom-large">
- 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? <a href="{{ page.relative_path }}community/#requesting-new-icons">Here's how</a>.
</div>
{% endif %}
<div class="row fontawesome-icon-list">
- {% assign icons_new = icons | expand_aliases | version:1.0 | sort_by:'class' %}
-
{% for icon in icons_new %}
<div class="fa-hover col-md-3 col-sm-4"><a href="{{ page.relative_path }}icon/{{ icon.id }}"><i class="fa fa-{{ icon.class }}" aria-hidden="true"></i> <span class="sr-only">Example of </span>{{ icon.class }}{% if icon.alias_of %} <span class="text-muted">(alias)</span>{% endif %}</a></div>
{% endfor %}