1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/_includes/section.html
Ryan L McIntyre fb426b344b Revamps the fonts downloads page again
* better layout and download buttons
* lots of misc tweaks
* basic flexbox layout
2019-08-18 10:23:37 -07:00

25 lines
4.1 KiB
HTML

{% capture id %}{{ page.id | remove:'/' | downcase }}{% endcapture %}
<div id="{{id}}" class="section p-{{id}}">
{% if id == 'home' %}
<div class="icon-backdrop rainbow">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
</div>
{% endif %}
{% if page.icon %}
<div class="subtlecircle sectiondivider imaged">
<img src="{{page.icon}}" alt="section icon" />
<h5 class="icon-title">{{ page.title }}</h5>
</div>
{% elsif page.fa-icon %}
<div class="subtlecircle sectiondivider faicon">
<span class="fa-stack">
<i class="nf nf-fa-circle fa-stack-2x"></i>
<i class="nf nf-fa-{{ page.fa-icon }} fa-stack-1x"></i>
</span>
<h5 class="icon-title">{{ page.title }}</h5>
</div>
{% endif %}
<div class="{{ page.style }}">
{{ page.content }}
</div>
</div>