feat: light/dark theme toggle

This commit is contained in:
Cory Dransfeldt 2024-02-12 10:32:39 -08:00
parent 979cabd6e9
commit bb0068a4e9
No known key found for this signature in database
8 changed files with 80 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{%- capture pageUrl %}/{{ link | downcase }}/{% endcapture -%}
{% if pageUrl contains page.fileSlug and page.fileSlug %}
<span class="active" aria-current="page">
<span class="active {{ class }}" aria-current="page">
{% if icon %}
{% tablericon icon link %}
{% else %}
@ -9,7 +9,7 @@
</span>
{% else %}
{% if icon %}
<a class="{{ icon | downcase }}" href="/{{ link | downcase }}">
<a class="{{ icon | downcase }} {{ class }}" href="/{{ link | downcase }}">
{% tablericon icon link %}
</a>
{% else %}