Added version indicators for new icons to cheatsheet

If an icon is newer than the current major version, show a version badge
to indicate which version of FontAwesome this icon was added.
This commit is contained in:
Ryan McGeary 2014-08-27 08:58:25 -04:00 committed by Dave Gandy
parent 654c66e394
commit 291d0072e0
2 changed files with 3 additions and 1 deletions

View file

@ -21,6 +21,7 @@ icon_destination: icon # Relative to destination
fontawesome:
version: 4.3.0
minor_version: 4.3
major_version: 4
doc_blob: v4.3.0
url: http://fontawesome.io
legacy_url: http://fortawesome.github.com/Font-Awesome/

View file

@ -24,10 +24,11 @@ relative_path: ../
{% for icon in sorted_icons %}
<div class="col-md-4 col-sm-6 col-lg-3">
{% if icon.created >= site.fontawesome.major_version %}<small class="text-muted pull-right">{{ icon.created }}</small>{% endif %}
<i class="fa fa-fw">&#x{{ icon.unicode }}</i>
fa-{{ icon.class }}
{% if icon.alias_of %} <span class="text-muted">(alias)</span>{% endif %}
<span class="muted">[&amp;#x{{ icon.unicode }};]</span>
<span class="text-muted">[&amp;#x{{ icon.unicode }};]</span>
</div>
{% endfor %}
</div>