forked from aio-libs/aio-libs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
75 lines (70 loc) · 3.1 KB
/
base.html
File metadata and controls
75 lines (70 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{% extends "!simple/base.html" %}
{% block head %}
{{- super() }}
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygment.css" />
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/main.js" defer></script>
{%- endblock head %}
{% block body %}
<div class="aio-pattern"></div>
<main class="aio-wrapper">
<section class="aio-nav">
{% block header %}{{ super() }}{% endblock header %}
{% block nav %}
{% if DISPLAY_PAGES_ON_MENU %}
{% if pages %}
<ul class="aio-nav__list">
{% for p in pages if not p.prefix == "projects/" %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
<ul class="aio-nav__list" aria-label="Projects">
{% for p in pages if p.prefix == "projects/" %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
{% endfor %}
</ul>
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% if tags %}
<ul class="aio-nav__list" aria-label="Categories">
{% for cat, null in tags %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if DISPLAY_SPONSORS_ON_MENU %}
{% if SPONSORS %}
<ul class="aio-nav__list" aria-label="Sponsors">
{% for sponsor, null in SPONSORS %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ sponsor.url }}">{{ sponsor }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if DISPLAY_LINKS_ON_MENU %}
{% if LINKS %}
<ul class="aio-nav__list" aria-label="Links">
{% for title, link in LINKS %}
<li><a class="aio-nav__link" href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
<div id="sponsor-sidebar" class="aio-sponsor-sidebar"></div>
{% endblock nav %}
</section>
<section class="aio-content">
{% block content %}
{% endblock content %}
</section>
</main>
{% block footer %}
<footer></footer>
<template id="template-sponsor-sidebar" data-sponsors='{{ SPONSORS["gold"]|tojson }}'>
<p>Featured Sponsor:</p>
<a class="aio-sponsor"><img /></a>
</template>
{% endblock footer %}
{% endblock body %}