Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions _data/navbar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,45 @@
index: 1
subfolderitems:
- page: Overview
url: mentorship
url: https://mentorship.womencodingcommunity.com/mentorship
breadcrumbs:
- name: Mentorship
link:
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Mentors
url: mentors
url: https://mentorship.womencodingcommunity.com/mentorship/mentors
breadcrumbs:
- name: Mentorship
link: mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Study Groups
url: programme-study-group
url: https://mentorship.womencodingcommunity.com/mentorship/study-groups
breadcrumbs:
- name: Mentorship
link: mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Resources
url: mentorship-resources
url: https://mentorship.womencodingcommunity.com/mentorship/resources
breadcrumbs:
- name: Mentorship
link: mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Code of Conduct
url: mentorship-code-of-conduct
url: https://mentorship.womencodingcommunity.com/mentorship/code-of-conduct
breadcrumbs:
- name: Mentorship
link: mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: FAQ
url: mentorship-faq
url: https://mentorship.womencodingcommunity.com/mentorship/faqs
breadcrumbs:
- name: Mentorship
link: mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Long-Term Timeline
url: mentorship-long-term-timeline
url: https://mentorship.womencodingcommunity.com/mentorship/long-term-timeline
breadcrumbs:
- name: Mentorship
link: mentorship
- name: Mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- page: Ad-hoc Timeline
url: mentorship-adhoc-timeline
url: https://mentorship.womencodingcommunity.com/mentorship/ad-hoc-timeline
breadcrumbs:
- name: Mentorship
link: mentorship
- name: Mentorship
link: https://mentorship.womencodingcommunity.com/mentorship
- name: Programmes
index: 2
subfolderitems:
Expand Down
68 changes: 36 additions & 32 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
<div class="menu">
<nav class="container navbar navbar-expand-lg navbar-light lined">

<a class="navbar-brand" href="/">
<img class="brand" src="/assets/images/logo.svg" alt="Women Coding Community home">
</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="main-navbar">
<ul class="navbar-nav ml-auto">
{% for item in site.data.navbar %}
<a class="navbar-brand" href="/">
<img class="brand" src="/assets/images/logo.svg" alt="Women Coding Community home">
</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar"
aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="main-navbar">
<ul class="navbar-nav ml-auto">
{% for item in site.data.navbar %}
<li class="nav-item {% if item.subfolderitems %}dropdown{% endif %}">
{% if item.subfolderitems %}

{% if item.link %}
<a class="nav-link" id="drop{{item.index}}" href="/{{item.link}}" role="button" aria-haspopup="true" aria-expanded="false">
<span class="dropdown-toggle">{{ item.name }}</span>
</a>
{% else %}
<a data-target="#" data-toggle="dropdown" class="nav-link cursor-pointer" id="drop{{item.index}}" aria-haspopup="true" aria-expanded="false">
<span class="dropdown-toggle">{{ item.name }}</span>
</a>
{% endif %}
{% if item.link %}
<a class="nav-link" id="drop{{item.index}}" href="/{{item.link}}" role="button" aria-haspopup="true"
aria-expanded="false">
<span class="dropdown-toggle">{{ item.name }}</span>
</a>
{% else %}
<a data-target="#" data-toggle="dropdown" class="nav-link cursor-pointer" id="drop{{item.index}}"
aria-haspopup="true" aria-expanded="false">
<span class="dropdown-toggle">{{ item.name }}</span>
</a>
{% endif %}

<ul class="dropdown-menu{% if forloop.last %} dropdown-menu-right{% endif %}" aria-labelledby="drop{{item.index}}">
{% for entry in item.subfolderitems %}
<li>
<a class="dropdown-item" href="/{{ entry.url }}">{{ entry.page }}</a>
</li>
{% endfor %}
</ul>
<ul class="dropdown-menu{% if forloop.last %} dropdown-menu-right{% endif %}"
aria-labelledby="drop{{item.index}}">
{% for entry in item.subfolderitems %}
<li>
<a class="dropdown-item" href="{{ entry.url }}">{{ entry.page }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<a class="nav-link" id="nav-{{item.index}}" href="/{{item.link}}">{{ item.name }}</a>
<a class="nav-link" id="nav-{{item.index}}" href="{{item.link}}">{{ item.name }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</nav>
{% endfor %}
</ul>
</div>
</nav>
</div>
Loading