-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·43 lines (43 loc) · 1014 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title data-spec="{1} — {0}">Website</title>
<script src="js/hashbang.min.js"></script>
</head>
<body>
<header>
<h1><a href="#!/blog">Website</a></h1>
<nav>
<ul>
<li><a href="#!/blog">Blog</a></li>
<li><a href="#!/projects">Projects</a></li>
<li><a href="#!/contact">Contact</a></li>
</ul>
</nav>
</header>
<main id="root"></main>
<template id="default" is="hb-template">
{% this.blocks.forEach(function (block) { %}
<h1>{{ block.title }}</h1>
{{ block.content }}
{% }); %}
</template>
<template id="list" data-sort="-time" is="hb-template">
<h1>{{ this.title }}</h1>
<ul>
{% this.blocks.forEach(function (block) { %}
<li>
<a href="{{ block.url }}">{{ block.title }}</a>
<time datetime="{{ block.time }}">
{{ block.time.format("M. j, Y") }}
</time>
</li>
{% }); %}
</ul>
</template>
<script>
HB.main();
</script>
</body>
</html>