Skip to content

Commit

Permalink
Move discontinued mods out of the main dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jan 1, 2024
1 parent 6d07e3c commit e60fb54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _layouts/default.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@
<span class="dropdown-backdrop"></span>
<ul id="mod-list-dropdown" class="dropdown-menu">
{% for mod in site.mods %}
{% unless mod.discontinued %}
<li class="dropdown-item"><a href="{{ mod.link }}" title="{{ mod.title }}">{{ mod.title }}</a></li>
{% endunless %}
{% endfor %}
<li>
<hr/>
</li>
<li class="dropdown-item">
<a href="/#discontinued-mods" title="Discontinued Mods">Discontinued Mods</a>
</li>
<!-- Will be adding Fabric libraries here "shortly" -->
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="section-title home">Our Minecraft Mods</h2>
{%- assign mods = site.mods | where_exp: "mod", "mod.discontinued != true" -%}
{% include mod_listing.liquid mods=mods %}
<hgroup>
<h2 class="section-title home">Discontinued Mods</h2>
<h2 id="discontinued-mods" class="section-title home">Discontinued Mods</h2>
<p class="section-description home">Minecraft mods that we no longer maintain for various reasons</p>
</hgroup>
{%- assign mods = site.mods | where_exp: "mod", "mod.discontinued" -%}
Expand Down

0 comments on commit e60fb54

Please sign in to comment.