]> git.ipfire.org Git - thirdparty/Font-Awesome.git/commitdiff
Added version indicators for new icons to cheatsheet
authorRyan McGeary <ryan@mcgeary.org>
Wed, 27 Aug 2014 12:58:25 +0000 (08:58 -0400)
committerDave Gandy <dave@davegandy.com>
Tue, 28 Jul 2015 21:52:04 +0000 (14:52 -0700)
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
src/cheatsheet.html

index fc30a9fef3c79b5976a6d9ecd92572aa3282895d..edb8516816dde61da6c392ff560372078ce7c5d0 100644 (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/
index dfd6d13c3272985bb17aa1920ffd7cd5e69858ca..1dd202ca04c5a694524e5a9e97b5d869c670f86d 100644 (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>