-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtimeline.lens
77 lines (67 loc) · 2.18 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
<koken:include file="layouts/header.html" />
<section id="main">
<div class="container">
<koken:load>
<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="row">
<div class="col-md-12">
<koken:if true="settings.custom_content">
<koken:not empty="settings.custom_pageid">
<koken:load source="page" filter:id="{{ settings.custom_pageid }}">
<h1>{{ page.title }}</h1>
{{ page.content }}
<koken:else>
<h1>{{ labels.timeline.singular }}</h1>
Content not found for supplied page id
</koken:load>
<koken:else>
<h1>{{ labels.timeline.singular }}</h1>
<koken:note>
For custom content, please set page id in Template Settings
</koken:note>
</koken:not>
<hr>
<koken:else>
<h1>{{ labels.timeline.singular }}</h1>
</koken:if>
<h3>Filter by:</h3>
<koken:load source="timeline" filter:scope="month">
<koken:select label="Select month" />
</koken:load>
<koken:categories>
<koken:select label="Select category" />
</koken:categories>
<koken:tags>
<koken:select label="Select tag" />
</koken:tags>
</div>
</div>
<koken:loop>
<div class="row content-title">
<div class="col-md-12">
<h1>
<koken:link><koken:time /></koken:link>
</h1>
</div>
</div>
<koken:event>
<koken:include file="layouts/timeline_album.html" />
<koken:include file="layouts/timeline_album_update.html" />
<koken:include file="layouts/timeline_essay.html" />
</koken:event>
</koken:loop>
<koken:else>
<koken:include file="layouts/error.html" />
<koken:note>
No content found
</koken:note>
</koken:load>
</div>
</section>
<koken:include file="layouts/footer.html" />