-
Notifications
You must be signed in to change notification settings - Fork 27
/
base.html
102 lines (89 loc) · 3.65 KB
/
base.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block htmltitle %}
<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
{% endblock %}
{% if page_description %}<meta name="description" content="{{ page_description }}">{% endif %}
<link rel="stylesheet" href="{{ base_url }}/css/normalize.css">
<link rel="stylesheet" href="{{ base_url }}/css/main.css">
<link rel="stylesheet" href="{{ base_url }}/css/syntax.css">
{# Set the brand_color #}
{% if config.extra.brand_color %}
<style type="text/css">
.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a:active,
.sidebar-nav a.sidebar-nav-active {
border-left-color: {{ config.extra.brand_color }};
}
header {
border-bottom-color: {{ config.extra.brand_color }};
}
</style>
{% endif %}
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="{{ base_url }}/js/respond.min.js"></script>
<![endif]-->
{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
{%- endfor %}
{%- block extrahead %} {% endblock %}
</head>
<body>
<div class="container">
<header role="banner">
<div class="wrap">
{% if config.extra.logo_url %}
<img class="logo" src="{{ config.extra.logo_url }}" alt="{% if config.extra.logo_alt %}{{ config.extra.logo_alt }}{% else %}Logo{% endif %}">
{% endif %}
<h1 class="site-title"><a class="title-link" href="{{ base_url }}/">{{ site_name }}</a></h1>
</div>
</header>
<div class="wrap content">
<aside>
<nav class="sidebar-nav" role="navigation">
<ul>
{% for nav_item in nav %}
<li>
{% if nav_item.children %}
<span>{{ nav_item.title }}</span>
<ul class="secondary-nav">
{% for nav_item in nav_item.children %}
<li>
<a href="{{ nav_item.url }}" class="{% if nav_item.active%}sidebar-nav-active{%endif%}">{{ nav_item.title }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<a href="{{ nav_item.url }}" class="{% if nav_item.active%}sidebar-nav-active{%endif%}">{{ nav_item.title }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
</aside>
<section id="main" class="main-content" role="main">
{{ content }}
</section>
</div>
<footer role="contentinfo">
<div class="wrap">
This project is maintained by <a href="https://cfpb.github.io">The Consumer Financial Protection Bureau.</a>.
<p>Hosted on <a href="http://pages.github.com/">GitHub Pages</a>.</p>
</div>
</footer>
</div>
</body>
</html>
{% if current_page and current_page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
-->
{% endif %}