Skip to content

Commit bf0f933

Browse files
committed
cleanup
1 parent 0cdeb00 commit bf0f933

File tree

1 file changed

+47
-42
lines changed

1 file changed

+47
-42
lines changed

themes/vocabulary_theme/templates/page-with-toc.html

+47-42
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ <h1>{{ this.title }}</h1>
2222
{% for href, title in [
2323
['/contributing-code/projects', 'Project List'],
2424
['/contributing-code/issue-finder', 'Issue Finder'],
25+
['/contributing-code/contributing-code', 'Contribution Guidelines'],
26+
['/contributing-code/usability', 'Usability'],
2527
] %}
2628
<li>
2729
<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>
3432
{% for href, title in [
3533
['/contributing-code/pr-guidelines', 'Pull Request Guidelines'],
3634
['/contributing-code/github-repo-guidelines', 'GitHub Repo Guidelines'],
@@ -40,24 +38,28 @@ <h1>{{ this.title }}</h1>
4038
] %}
4139
<li><a class="{% if this.path == {{ href }} %} is-active {% endif%} link" href="{{ href|url }}"><i class="icon circle-filled"></i>{{ title }}</a></li>
4240
{% 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 %}
4948
</ul>
5049
</aside>
5150
{% elif this.is_child_of('/community') %}
5251
<aside class="menu sidebar-menu">
5352
<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>
6163
{% for href, title in [
6264
['/community/community-team/members', 'Community Team Members'],
6365
['/community/community-team/project-roles', 'Project Roles'],
@@ -66,43 +68,46 @@ <h1>{{ this.title }}</h1>
6668
] %}
6769
<li><a class="{% if this.path == {{ href }} %} is-active {% endif%} link" href="{{ href|url }}"><i class="icon circle-filled"></i>{{ title }}</a></li>
6870
{% 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 %}
8183
</li>
8284
</ul>
8385
</aside>
8486
{% elif this.is_child_of('/internships') %}
8587
<aside class="menu sidebar-menu">
8688
<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>
9098
{% for href, title in [
9199
['/internships/applicant-guide', 'Applicant Guide'],
92100
['/internships/intern-guide', 'Intern Guide'],
93101
['/internships/mentor-guide', 'Mentor Guide'],
94102
] %}
95103
<li><a class="{% if this.path == {{ href }} %} is-active {% endif%} link" href="{{ href|url }}"><i class="icon circle-filled"></i>{{ title }}</a></li>
96104
{% 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 %}
105107
</li>
108+
{% if (href != '/internships/history') %}
109+
<hr class="divider">
110+
{% endif %}
106111
{% endfor %}
107112
</ul>
108113
</aside>

0 commit comments

Comments
 (0)