-
Notifications
You must be signed in to change notification settings - Fork 28
/
timeline.lens
93 lines (71 loc) · 2.3 KB
/
timeline.lens
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
<koken:include file="inc/header.html" />
<!-- Load this template's source data (timeline). Limit to 20 days. -->
<koken:load limit="20">
<!-- Add Facebook Open Graph tags for nicer sharing -->
<koken:head>
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:description" content="{{ site.description strip_html='true' }}" />
<meta property="og:title" content="{{ labels.timeline.plural }}" />
<meta property="og:type" content="blog" />
<meta property="og:url" content="{{ location.site_url }}{{ location.here }}" />
</koken:head>
<div class="lcol">
<section>
<!-- Loop over each day -->
<koken:loop>
<header>
<!-- Display the day (eg, January 1, 2014) -->
<h1>
<koken:time />
</h1>
</header>
<!-- Render each event in each day -->
<koken:include file="inc/events.html" />
</koken:loop>
<!-- Display pagination links -->
<koken:include file="inc/pagination.html" />
</section>
</div> <!-- close lcol -->
<div class="rcol">
<aside>
<section>
<!-- Display timeline archive links -->
<h5>View {{ labels.timeline.singular case="lower" }} by date</h5>
<koken:dates filter:scope="month">
<koken:select label="Select month" />
</koken:dates>
</section>
<section>
<!-- Display links to view all content by tag -->
<koken:tags>
<h5>View everything by {{ labels.tag.singular case="lower" }}</h5>
<koken:loop>
<koken:link title="View everything in {{ tag.title }}">
{{ tag.title }} ({{ tag.counts.total }})
</koken:link>
<br>
</koken:loop>
</koken:tags>
</section>
<section>
<!-- Display links to view all content by category -->
<koken:categories>
<h5>View everything by {{ labels.category.singular case="lower" }}</h5>
<koken:loop>
<koken:link title="View everything in {{ category.title }}">
{{ category.title }} ({{ category.counts.total }})
</koken:link>
<br>
</koken:loop>
</koken:categories>
</section>
</aside>
</div>
<!-- Fallback content if no data was loaded by koken:load -->
<koken:else>
<!-- Use koken:note to display this message in the Site editor only -->
<koken:note>
No timeline events found
</koken:note>
</koken:load>
<koken:include file="inc/footer.html" />