bunch of stuff, idk, just throwing things at the wall

This commit is contained in:
inherentlee committed 2026-09-27 13:53:17 -07:00
1 parent dd0019a666
commit a605a05943
9 files changed
+96 -142

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@
<style>{% include "css/nav.css" %}</style>
<style>{% getBundle "css" %}</style>
{#
<!-- JS -->
<script>{% include "js/dropdown.js" %}</script>
<script type="module">{% getBundle "js" %}</script>
#}
</head>
+27 -1
View File
@@ -1,5 +1,31 @@
<header>
<nav>
{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}
<ul>
{% for entry in collections.all | eleventyNavigation %}
{% if not entry.children.length %}
<li>
<a href="{{ entry.url }}" {% if page.url == entry.url %}aria-current="page"{% endif %}>
{{ entry.title }}
</a>
</li>
{% else %}
<li class="dropdown">
<label for="dropdown-{{ entry.title | slugify }}">
{{ entry.title }}
<input type="checkbox" id="dropdown-{{ entry.title | slugify }}">
</label>
<ul>
{% for child in entry.children %}
<li>
<a href="{{ child.url }}" {% if page.url == entry.url %}aria-current="page"{% endif %}>
{{ child.title }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
<ul>
</nav>
</header>