mirror of
https://github.com/joyce-chen/persona5-negotiation.git
synced 2025-11-18 16:47:05 -05:00
Added active button to nav
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
<nav>
|
||||
<a role="button" class="btn btn-outline-danger btn" href="info">Info</a>
|
||||
{% for navigation in site.data.navigation %}
|
||||
{% assign link = navigation.url %}
|
||||
{% if navigation.url != '/persona5-negotiation/' %}
|
||||
{% assign link = navigation.url | append: '.html' %}
|
||||
{% endif %}
|
||||
{% assign current = '/persona5-negotiation' | append: page.url %}
|
||||
<a role="button" class="btn btn-outline-danger btn{% if link == current %} active{% endif %}"
|
||||
href="{{ navigation.url }}">{{ navigation.text }}</a>
|
||||
{% endfor %}
|
||||
|
||||
<!-- <a role="button" class="btn btn-outline-danger btn" href="info">Info</a>
|
||||
<a role="button" class="btn btn-outline-danger btn" href="shadows">Shadows</a>
|
||||
<a role="button" class="btn btn-outline-danger btn" href="/persona5-negotiation">P5 Questions</a>
|
||||
<a role="button" class="btn btn-outline-danger btn" href="royal">Royal</a>
|
||||
<a role="button" class="btn btn-outline-danger btn" href="royal">Royal</a> -->
|
||||
</nav>
|
||||
Reference in New Issue
Block a user