@@ -22,15 +22,13 @@ <h1>{{ this.title }}</h1>
22
22
{% for href, title in [
23
23
['/contributing-code/projects', 'Project List'],
24
24
['/contributing-code/issue-finder', 'Issue Finder'],
25
+ ['/contributing-code/contributing-code', 'Contribution Guidelines'],
26
+ ['/contributing-code/usability', 'Usability'],
25
27
] %}
26
28
< li >
27
29
< a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> {{ title }}</ a >
28
- </ li >
29
- < hr class ="divider ">
30
- {% endfor %}
31
- < li >
32
- < a class ="{% if this.path == '/contributing-code' %} is-active {% endif%} link " href ="{{ '/contributing-code'|url }} "> Contribution Guidelines</ a >
33
- < ul >
30
+ {% if (href == '/contributing-code/contributing-code') %}
31
+ < ul >
34
32
{% for href, title in [
35
33
['/contributing-code/pr-guidelines', 'Pull Request Guidelines'],
36
34
['/contributing-code/github-repo-guidelines', 'GitHub Repo Guidelines'],
@@ -40,24 +38,28 @@ <h1>{{ this.title }}</h1>
40
38
] %}
41
39
< li > < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> < i class ="icon circle-filled "> </ i > {{ title }}</ a > </ li >
42
40
{% endfor %}
43
- </ ul >
44
- </ li >
45
- < hr class ="divider ">
46
- < li >
47
- < a class ="{% if this.path == '/contributing-code/usability' %} is-active {% endif%} link " href ="{{ '/contributing-code/usability'|url }} "> Usability</ a >
48
- </ li >
41
+ </ ul >
42
+ {% endif %}
43
+ </ li >
44
+ {% if (href != '/contributing-code/usability') %}
45
+ < hr class ="divider ">
46
+ {% endif %}
47
+ {% endfor %}
49
48
</ ul >
50
49
</ aside >
51
50
{% elif this.is_child_of('/community') %}
52
51
< aside class ="menu sidebar-menu ">
53
52
< ul class ="menu-list ">
54
- < li >
55
- < a class ="{% if this._path == '/community' %} is-active {% endif%} link " href ="{{ '/community'|url }} "> Join the Community</ a >
56
- </ li >
57
- < hr class ="divider ">
58
- < li >
59
- < a class ="{% if this._path == '/community/community-team' %} is-active {% endif%} link " href ="{{ '/community/community-team'|url }} "> Community Team</ a >
60
- < ul >
53
+ {% for href, title in [
54
+ ['/community', 'Join the Community'],
55
+ ['/community/community-team', 'Community Team'],
56
+ ['/community/write-a-blog-post', 'Write a Blog Post'],
57
+ ['/community/code-of-conduct', 'Code of Conduct'],
58
+ ] %}
59
+ < li >
60
+ < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> {{ title }}</ a >
61
+ {% if (href == '/community/community-team') %}
62
+ < ul >
61
63
{% for href, title in [
62
64
['/community/community-team/members', 'Community Team Members'],
63
65
['/community/community-team/project-roles', 'Project Roles'],
@@ -66,43 +68,46 @@ <h1>{{ this.title }}</h1>
66
68
] %}
67
69
< li > < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> < i class ="icon circle-filled "> </ i > {{ title }}</ a > </ li >
68
70
{% endfor %}
69
- </ ul >
70
- </ li >
71
- < hr class =" divider " >
72
- < li >
73
- < a class ="{% if this._path == '/community/write-a-blog-post ' %} is-active {% endif%} link " href ="{{ '/community/write-a-blog-post '|url }} "> Write a Blog Post </ a >
74
- </ li >
75
- < hr class =" divider " >
76
- < li >
77
- < a class =" {% if this._path == '/community/code-of-conduct' %} is-active {% endif%} link " href =" {{ '/community/code-of-conduct'|url }} " > Code of Conduct </ a >
78
- < ul >
79
- < li > < a class =" {% if this._path == '/community/code-of-conduct/enforcement' %} is-active {% endif%} link " href =" {{ '/community/code-of-conduct/enforcement'|url }} " > < i class =" icon circle-filled " > </ i > Code of Conduct Enforcement </ a > </ li >
80
- </ ul >
71
+ </ ul >
72
+ {% endif %}
73
+ {% if (href == '/community/code-of-conduct') %}
74
+ < ul >
75
+ < li > < a class ="{% if this._path == '/community/code-of-conduct/enforcement ' %} is-active {% endif%} link " href ="{{ '/community/code-of-conduct/enforcement '|url }} "> < i class =" icon circle-filled " > </ i > Code of Conduct Enforcement </ a > </ li >
76
+ </ ul >
77
+ {% endif %}
78
+ </ li >
79
+ {% if (href != '/community/code-of-conduct') %}
80
+ < hr class =" divider " >
81
+ {% endif %}
82
+ {% endfor %}
81
83
</ li >
82
84
</ ul >
83
85
</ aside >
84
86
{% elif this.is_child_of('/internships') %}
85
87
< aside class ="menu sidebar-menu ">
86
88
< ul class ="menu-list ">
87
- < li >
88
- < a class ="{% if this._path == '/internships' %} is-active {% endif%} link " href ="{{ '/internships'|url }} "> Overview</ a >
89
- < ul >
89
+ {% for href, title in [
90
+ ['/internships', 'Overview'],
91
+ ['/internships/project-ideas', 'Project Ideas'],
92
+ ['/internships/history', 'History'],
93
+ ] %}
94
+ < li >
95
+ < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> {{ title }}</ a >
96
+ {% if (href == '/internships') %}
97
+ < ul >
90
98
{% for href, title in [
91
99
['/internships/applicant-guide', 'Applicant Guide'],
92
100
['/internships/intern-guide', 'Intern Guide'],
93
101
['/internships/mentor-guide', 'Mentor Guide'],
94
102
] %}
95
103
< li > < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> < i class ="icon circle-filled "> </ i > {{ title }}</ a > </ li >
96
104
{% endfor %}
97
- </ ul >
98
- {% for href, title in [
99
- ['/internships/project-ideas', 'Project Ideas'],
100
- ['/internships/history', 'History'],
101
- ] %}
102
- < hr class ="divider ">
103
- < li >
104
- < a class ="{% if this.path == {{ href }} %} is-active {% endif%} link " href ="{{ href|url }} "> {{ title }}</ a >
105
+ </ ul >
106
+ {% endif %}
105
107
</ li >
108
+ {% if (href != '/internships/history') %}
109
+ < hr class ="divider ">
110
+ {% endif %}
106
111
{% endfor %}
107
112
</ ul >
108
113
</ aside >
0 commit comments