fix active state
This commit is contained in:
parent
063ed23406
commit
e135250c43
2 changed files with 3 additions and 3 deletions
|
@ -10,5 +10,5 @@
|
||||||
{% include "icons/trakt.liquid" %}
|
{% include "icons/trakt.liquid" %}
|
||||||
{% include "icons/oku.liquid" %}
|
{% include "icons/oku.liquid" %}
|
||||||
</div>
|
</div>
|
||||||
<p class="text-sm text-gray-500 dark:text-gray-100 text-center pb-8"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url == '/uses/' %} active{% endif %}" href="/uses">Uses</a> • <a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url == '/referrals/' %} active{% endif %}" href="/referrals">Referrals</a> • Cory Dransfeldt • © {{ "now" | date: "%Y" }}</p>
|
<p class="text-sm text-gray-500 dark:text-gray-100 text-center pb-8"><a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url contains '/uses' %} active{% endif %}" href="/uses">Uses</a> • <a class="text-gray-700 hover:text-primary-400 dark:text-gray-200{% if page.url contains '/referrals' %} active{% endif %}" href="/referrals">Referrals</a> • Cory Dransfeldt • © {{ "now" | date: "%Y" }}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="flex">
|
<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 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 == '/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 '/about' %} active{% endif %}" href="/about">About</a></li>
|
||||||
<li class="mr-6">
|
<li class="mr-6">
|
||||||
{% include "icons/coffee.liquid" %}
|
{% include "icons/coffee.liquid" %}
|
||||||
</li>
|
</li>
|
||||||
|
|
Reference in a new issue