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