-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (103 loc) · 3.12 KB
/
index.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
103
104
105
106
107
108
109
110
111
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ site.title }}</title>
<meta name="description" content="{{ site.description }}">
<link rel="icon" href="{{ site.favicon }}">
<link rel="alternate" type="application/atom+xml" href="feed.xml">
<meta property="og:title" content="{{ site.title }}">
<meta property="og:description" content="{{ site.description }}">
<meta property="og:image" content="{{ site.icon }}">
<meta name="twitter:card" content="summary">
<style>
/* base.css */
{% include base.css %}
/* theme.css */
{% include theme.css %}
/* highlight.css */
{% include highlight.css %}
/* print.css */
{% include print.css %}
</style>
</head>
<body>
<header>
<h1>
<a href="#_">{{ site.title }}</a>
</h1>
</header>
<main>
<!-- Table of Contents (first) -->
<section>
<nav>
<ul class="posts">
{% for post in site.posts %}
{% capture id %}{{ post.id | remove:'/' | downcase }}{% endcapture %}
<li>
<a href="#{{id}}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a>
<time datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ post.date | date: site.date_format }}</time>
</li>
{% endfor %}
</ul>
</nav>
</section>
<!-- All posts -->
{% for post in site.posts %}
{% capture id %}{{ post.id | remove:'/' | downcase }}{% endcapture %}
<section tabindex="0" role="document" aria-label="{{ post.title }}" id="{{id}}">
{{ post.content }}
</section>
{% endfor %}
<!-- All pages -->
{% for page in site.pages %}
{% capture id %}{{ page.title | slugify }}{% endcapture %}
<section tabindex="0" role="document" aria-label="{{ page.title }}" id="{{id}}" class="page">
{{ page.content }}
</section>
{% endfor %}
<!-- Table of Contents (last) -->
<section id="home">
<nav>
<ul class="posts">
{% for post in site.posts %}
{% capture id %}{{ post.id | remove:'/' | downcase }}{% endcapture %}
<li>
<a href="#{{id}}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a>
<time datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ post.date | date: site.date_format }}</time>
</li>
{% endfor %}
</ul>
</nav>
</section>
</main>
<footer>
<!-- Tagline or else
<div class="text">
{% capture foottext %} {% include footer.md %} {% endcapture %}
{{ foottext | markdownify }}
</div>
-->
<!-- Pages links -->
<nav>
<ul class="pages">
<li>
<a href="feed.xml">RSS</a>
</li>
{% for page in site.pages %}
{% capture id %}{{ page.title | slugify }}{% endcapture %}
<li>
<a href="#{{id}}">{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</a>
</li>
{% endfor %}
<li>
<a href="#_">Index</a>
</li>
</ul>
</nav>
</footer>
</body>
</html>