Skip to content

Commit 89624aa

Browse files
Update base.html
1 parent 4169073 commit 89624aa

File tree

1 file changed

+11
-38
lines changed

1 file changed

+11
-38
lines changed

theme/templates/base.html

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,27 @@
1313
<section class="aio-nav">
1414
{% block header %}{{ super() }}{% endblock header %}
1515
{% block nav %}
16-
{% if DISPLAY_PAGES_ON_MENU %}
17-
{% if pages %}
18-
<ul class="aio-nav__list">
19-
{% for p in pages if not p.prefix == "projects/" %}
20-
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
21-
{% endfor %}
22-
</ul>
23-
{% endif %}
24-
{% endif %}
16+
<ul class="aio-nav__list">
17+
{% for p in pages if not p.prefix == "projects/" %}
18+
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
19+
{% endfor %}
20+
</ul>
2521
<ul class="aio-nav__list" aria-label="Projects">
2622
{% for p in pages if p.prefix == "projects/" %}
2723
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
2824
{% endfor %}
2925
</ul>
30-
{% if DISPLAY_CATEGORIES_ON_MENU %}
31-
{% if tags %}
32-
<ul class="aio-nav__list" aria-label="Categories">
33-
{% for cat, null in tags %}
34-
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
35-
{% endfor %}
36-
</ul>
37-
{% endif %}
38-
{% endif %}
39-
{% if DISPLAY_SPONSORS_ON_MENU %}
40-
{% if SPONSORS %}
41-
<ul class="aio-nav__list" aria-label="Sponsors">
42-
{% for sponsor, null in SPONSORS %}
43-
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ sponsor.url }}">{{ sponsor }}</a></li>
44-
{% endfor %}
45-
</ul>
46-
{% endif %}
47-
{% endif %}
48-
{% if DISPLAY_LINKS_ON_MENU %}
49-
{% if LINKS %}
50-
<ul class="aio-nav__list" aria-label="Links">
51-
{% for title, link in LINKS %}
52-
<li><a class="aio-nav__link" href="{{ link }}">{{ title }}</a></li>
53-
{% endfor %}
54-
</ul>
55-
{% endif %}
56-
{% endif %}
26+
<ul class="aio-nav__list" aria-label="News">
27+
{% for cat, null in tags %}
28+
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat }}</a></li>
29+
{% endfor %}
30+
</ul>
5731

5832
<div id="sponsor-sidebar" class="aio-sponsor-sidebar"></div>
5933
{% endblock nav %}
6034
</section>
6135
<section class="aio-content">
62-
{% block content %}
63-
{% endblock content %}
36+
{% block content %}{% endblock content %}
6437
</section>
6538
</main>
6639

0 commit comments

Comments
 (0)