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
diff options
context:
space:
mode:
authorRyan McGeary <ryan@mcgeary.org>2014-08-27 16:58:25 +0400
committerDave Gandy <dave@davegandy.com>2015-07-29 00:52:04 +0300
commit291d0072e06f9404c9403cccb2aaf1451e54fb15 (patch)
treefbb0f5d2771aa3e8db86f04041748456020a3a6d
parent654c66e394bf9e8da366b45238486d6161018443 (diff)
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.
-rw-r--r--_config.yml1
-rw-r--r--src/cheatsheet.html3
2 files changed, 3 insertions, 1 deletions
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 %}
<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>