Skip to content

Commit 15aa1bc

Browse files
authored
Merge pull request #688 from dricazenck/redirect_to_new_website
feat: enable long-term mentorship
2 parents b68ef57 + 78691b2 commit 15aa1bc

File tree

2 files changed

+54
-50
lines changed

2 files changed

+54
-50
lines changed

_data/navbar.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,45 @@
55
index: 1
66
subfolderitems:
77
- page: Overview
8-
url: mentorship
8+
url: https://mentorship.womencodingcommunity.com/mentorship
99
breadcrumbs:
1010
- name: Mentorship
11-
link:
11+
link: https://mentorship.womencodingcommunity.com/mentorship
1212
- page: Mentors
13-
url: mentors
13+
url: https://mentorship.womencodingcommunity.com/mentorship/mentors
1414
breadcrumbs:
1515
- name: Mentorship
16-
link: mentorship
16+
link: https://mentorship.womencodingcommunity.com/mentorship
1717
- page: Study Groups
18-
url: programme-study-group
18+
url: https://mentorship.womencodingcommunity.com/mentorship/study-groups
1919
breadcrumbs:
2020
- name: Mentorship
21-
link: mentorship
21+
link: https://mentorship.womencodingcommunity.com/mentorship
2222
- page: Resources
23-
url: mentorship-resources
23+
url: https://mentorship.womencodingcommunity.com/mentorship/resources
2424
breadcrumbs:
2525
- name: Mentorship
26-
link: mentorship
26+
link: https://mentorship.womencodingcommunity.com/mentorship
2727
- page: Code of Conduct
28-
url: mentorship-code-of-conduct
28+
url: https://mentorship.womencodingcommunity.com/mentorship/code-of-conduct
2929
breadcrumbs:
3030
- name: Mentorship
31-
link: mentorship
31+
link: https://mentorship.womencodingcommunity.com/mentorship
3232
- page: FAQ
33-
url: mentorship-faq
33+
url: https://mentorship.womencodingcommunity.com/mentorship/faqs
3434
breadcrumbs:
3535
- name: Mentorship
36-
link: mentorship
36+
link: https://mentorship.womencodingcommunity.com/mentorship
3737
- page: Long-Term Timeline
38-
url: mentorship-long-term-timeline
38+
url: https://mentorship.womencodingcommunity.com/mentorship/long-term-timeline
3939
breadcrumbs:
40-
- name: Mentorship
41-
link: mentorship
40+
- name: Mentorship
41+
link: https://mentorship.womencodingcommunity.com/mentorship
4242
- page: Ad-hoc Timeline
43-
url: mentorship-adhoc-timeline
43+
url: https://mentorship.womencodingcommunity.com/mentorship/ad-hoc-timeline
4444
breadcrumbs:
45-
- name: Mentorship
46-
link: mentorship
45+
- name: Mentorship
46+
link: https://mentorship.womencodingcommunity.com/mentorship
4747
- name: Programmes
4848
index: 2
4949
subfolderitems:

_includes/navbar.html

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
<div class="menu">
22
<nav class="container navbar navbar-expand-lg navbar-light lined">
3-
4-
<a class="navbar-brand" href="/">
5-
<img class="brand" src="/assets/images/logo.svg" alt="Women Coding Community home">
6-
</a>
7-
8-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
9-
<span class="navbar-toggler-icon"></span>
10-
</button>
113

12-
<div class="collapse navbar-collapse" id="main-navbar">
13-
<ul class="navbar-nav ml-auto">
14-
{% for item in site.data.navbar %}
4+
<a class="navbar-brand" href="/">
5+
<img class="brand" src="/assets/images/logo.svg" alt="Women Coding Community home">
6+
</a>
7+
8+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar"
9+
aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
10+
<span class="navbar-toggler-icon"></span>
11+
</button>
12+
13+
<div class="collapse navbar-collapse" id="main-navbar">
14+
<ul class="navbar-nav ml-auto">
15+
{% for item in site.data.navbar %}
1516
<li class="nav-item {% if item.subfolderitems %}dropdown{% endif %}">
1617
{% if item.subfolderitems %}
1718

18-
{% if item.link %}
19-
<a class="nav-link" id="drop{{item.index}}" href="/{{item.link}}" role="button" aria-haspopup="true" aria-expanded="false">
20-
<span class="dropdown-toggle">{{ item.name }}</span>
21-
</a>
22-
{% else %}
23-
<a data-target="#" data-toggle="dropdown" class="nav-link cursor-pointer" id="drop{{item.index}}" aria-haspopup="true" aria-expanded="false">
24-
<span class="dropdown-toggle">{{ item.name }}</span>
25-
</a>
26-
{% endif %}
19+
{% if item.link %}
20+
<a class="nav-link" id="drop{{item.index}}" href="/{{item.link}}" role="button" aria-haspopup="true"
21+
aria-expanded="false">
22+
<span class="dropdown-toggle">{{ item.name }}</span>
23+
</a>
24+
{% else %}
25+
<a data-target="#" data-toggle="dropdown" class="nav-link cursor-pointer" id="drop{{item.index}}"
26+
aria-haspopup="true" aria-expanded="false">
27+
<span class="dropdown-toggle">{{ item.name }}</span>
28+
</a>
29+
{% endif %}
2730

28-
<ul class="dropdown-menu{% if forloop.last %} dropdown-menu-right{% endif %}" aria-labelledby="drop{{item.index}}">
29-
{% for entry in item.subfolderitems %}
30-
<li>
31-
<a class="dropdown-item" href="/{{ entry.url }}">{{ entry.page }}</a>
32-
</li>
33-
{% endfor %}
34-
</ul>
31+
<ul class="dropdown-menu{% if forloop.last %} dropdown-menu-right{% endif %}"
32+
aria-labelledby="drop{{item.index}}">
33+
{% for entry in item.subfolderitems %}
34+
<li>
35+
<a class="dropdown-item" href="{{ entry.url }}">{{ entry.page }}</a>
36+
</li>
37+
{% endfor %}
38+
</ul>
3539
{% else %}
36-
<a class="nav-link" id="nav-{{item.index}}" href="/{{item.link}}">{{ item.name }}</a>
40+
<a class="nav-link" id="nav-{{item.index}}" href="{{item.link}}">{{ item.name }}</a>
3741
{% endif %}
3842
</li>
39-
{% endfor %}
40-
</ul>
41-
</div>
42-
</nav>
43+
{% endfor %}
44+
</ul>
45+
</div>
46+
</nav>
4347
</div>

0 commit comments

Comments
 (0)