mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-11-20 11:14:28 +00:00
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:
parent
654c66e394
commit
291d0072e0
@ -21,6 +21,7 @@ icon_destination: icon # Relative to destination
|
|||||||
fontawesome:
|
fontawesome:
|
||||||
version: 4.3.0
|
version: 4.3.0
|
||||||
minor_version: 4.3
|
minor_version: 4.3
|
||||||
|
major_version: 4
|
||||||
doc_blob: v4.3.0
|
doc_blob: v4.3.0
|
||||||
url: http://fontawesome.io
|
url: http://fontawesome.io
|
||||||
legacy_url: http://fortawesome.github.com/Font-Awesome/
|
legacy_url: http://fortawesome.github.com/Font-Awesome/
|
||||||
|
@ -24,10 +24,11 @@ relative_path: ../
|
|||||||
|
|
||||||
{% for icon in sorted_icons %}
|
{% for icon in sorted_icons %}
|
||||||
<div class="col-md-4 col-sm-6 col-lg-3">
|
<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>
|
<i class="fa fa-fw">&#x{{ icon.unicode }}</i>
|
||||||
fa-{{ icon.class }}
|
fa-{{ icon.class }}
|
||||||
{% if icon.alias_of %} <span class="text-muted">(alias)</span>{% endif %}
|
{% if icon.alias_of %} <span class="text-muted">(alias)</span>{% endif %}
|
||||||
<span class="muted">[&#x{{ icon.unicode }};]</span>
|
<span class="text-muted">[&#x{{ icon.unicode }};]</span>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user