Skip to content

Commit

Permalink
restore headings from #321
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke authored and MicahGale committed Jan 16, 2025
1 parent aa9c5dc commit 244d178
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions _includes/site_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,29 @@
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="{{ site.baseurl }}/{{ item.url }}" >{{ item.title }}</a>
<div class="dropdown-menu" aria-labelledby="download">
{% for subcategory in item.subcategories %}
{% if subcategory.subtitle == "divider" %}
<div class="dropdown-divider"></div>
{% if subcategory.subheading != null %}
<div class="dropdown-header">{{ subcategory.subheading }}</div>
{% else %}
<div class="dropdown-item">
{% if subcategory.suburl != null %}
{% assign nav_url = site.baseurl | append: "/" | append: subcategory.suburl %}
{% else %}
{% assign nav_url = subcategory.exturl %}
{% endif %}
<a class="dropdown-item" style="display:inline;" target="{{ subcategory.target }}" href="{{ nav_url }}">
{% if subcategory.icon != null %}
<img class="cnerg-service-icon" src="{{ site.baseurl }}/assets/images/{{ subcategory.icon }}.png">
{% endif %}
{{ subcategory.subtitle }}</a>
{% if subcategory.github != null %}
<a class="dropdown-item" style="display:inline;" href="{{ subcategory.github }}" target="_blank">
<img class="cnerg-service-icon" src="{{ site.baseurl }}/services/icons/github.svg"></a>
{% endif %}
</div>
{% if subcategory.subtitle == "divider" %}
<div class="dropdown-divider"></div>
{% else %}
<div class="dropdown-item">
{% if subcategory.suburl != null %}
{% assign nav_url = site.baseurl | append: "/" | append: subcategory.suburl %}
{% else %}
{% assign nav_url = subcategory.exturl %}
{% endif %}
<a class="dropdown-item" style="display:inline;" target="{{ subcategory.target }}" href="{{ nav_url }}">
{% if subcategory.icon != null %}
<img class="cnerg-service-icon" src="{{ site.baseurl }}/assets/images/{{ subcategory.icon }}.png">
{% endif %}
{{ subcategory.subtitle }}</a>
{% if subcategory.github != null %}
<a class="dropdown-item" style="display:inline;" href="{{ subcategory.github }}" target="_blank">
<img class="cnerg-service-icon" src="{{ site.baseurl }}/services/icons/github.svg"></a>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit 244d178

Please sign in to comment.