From: Ryan McGeary Date: Wed, 27 Aug 2014 12:58:25 +0000 (-0400) Subject: Added version indicators for new icons to cheatsheet X-Git-Tag: v4.4.0~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=291d0072e06f9404c9403cccb2aaf1451e54fb15;p=thirdparty%2FFont-Awesome.git 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. --- diff --git a/_config.yml b/_config.yml index fc30a9fef3..edb8516816 100644 --- a/_config.yml +++ b/_config.yml @@ -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/ diff --git a/src/cheatsheet.html b/src/cheatsheet.html index dfd6d13c32..1dd202ca04 100644 --- a/src/cheatsheet.html +++ b/src/cheatsheet.html @@ -24,10 +24,11 @@ relative_path: ../ {% for icon in sorted_icons %}
+ {% if icon.created >= site.fontawesome.major_version %}{{ icon.created }}{% endif %} &#x{{ icon.unicode }} fa-{{ icon.class }} {% if icon.alias_of %} (alias){% endif %} - [&#x{{ icon.unicode }};] + [&#x{{ icon.unicode }};]
{% endfor %}