-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdefault.html
More file actions
executable file
·82 lines (72 loc) · 2.89 KB
/
default.html
File metadata and controls
executable file
·82 lines (72 loc) · 2.89 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
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% seo %}
{% feed_meta %}
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,400italic,600,600italic,700,700italic|Inconsolata:400,700">
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<link rel="apple-touch-icon" href="{{ site.baseurl }}/apple-touch-icon.png">
<link rel="icon" type="image/png" href="{{ site.baseurl }}/touch-icon.png" sizes="192x192">
<link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon.png">
{% if jekyll.environment == 'production' and site.google_analytics_key != '' %}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ site.google_analytics_key }}', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
{% endif %}
</head>
<body>
<header>
<h1>
<a href="{{ site.baseurl }}/"><img src="{{ site.baseurl }}/images/emblem.svg" width="40" height="40" alt="{{ site.title }} logo"></a>
{{ site.title }}
<button type="button" class="open-nav" id="open-nav"></button>
</h1>
<form action="{{ site.baseurl }}/search/" method="get">
<input type="text" name="q" id="search-input" placeholder="Search" autofocus>
<input type="submit" value="Search" style="display: none;">
</form>
<nav {% if site.show_full_navigation %}class="full-navigation"{% endif %}>
<ul>
<li class="nav-item top-level {% if page.url == '/' %}current{% endif %}">
{% assign home = site.html_pages | where: 'url', '/' | first %}
<a href="{{ site.baseurl }}/">{{ home.title }}</a>
</li>
</ul>
<ul>
{% assign grouped = site.docs | group_by: 'category' %}
{% for group in grouped %}
<li class="nav-item top-level {% if group.name == page.category %}current{% endif %}">
{% assign items = group.items | sort: 'order' %}
<a href="{{ site.baseurl }}{{ items.first.url }}">{{ group.name }}</a>
<ul>
{% for item in items %}
<li class="nav-item {% if item.url == page.url %}current{% endif %}"><a href="{{ site.baseurl }}{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</nav>
</header>
<section class="main">
<div class="page-header">
<h2>{% if page.category %}{{ page.category }}{% else %}{{ site.title }}{% endif %}</h2>
<h3>{{ page.title }}</h3>
</div>
<article class="content">
{% if page.toc %}{% include toc.html html=content %}{% endif %}
{{ content }}
</article>
</section>
<script>
document.getElementById("open-nav").addEventListener("click", function () {
document.body.classList.toggle("nav-open");
});
</script>
</body>
</html>