From 291d0072e06f9404c9403cccb2aaf1451e54fb15 Mon Sep 17 00:00:00 2001 From: Ryan McGeary Date: Wed, 27 Aug 2014 08:58:25 -0400 Subject: [PATCH] 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. --- _config.yml | 1 + src/cheatsheet.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fc30a9fef..edb851681 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 dfd6d13c3..1dd202ca0 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 %}