fix active state

This commit is contained in:
Cory Dransfeldt 2023-03-14 10:11:27 -07:00
parent 063ed23406
commit e135250c43
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<nav>
<ul class="flex">
<li class="mr-6"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url == '/now/' %} active{% endif %}" href="/now">/now</a></li>
<li class="mr-6"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url == '/about/' %} active{% endif %}" href="/about">About</a></li>
<li class="mr-6"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url contains '/now' %} active{% endif %}" href="/now">/now</a></li>
<li class="mr-6"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url contains '/about' %} active{% endif %}" href="/about">About</a></li>
<li class="mr-6">
{% include "icons/coffee.liquid" %}
</li>