-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.lens
74 lines (48 loc) · 1.56 KB
/
index.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
<koken:include file="inc/header.html" />
<main>
<!-- Load this template's source data (featured content) -->
<koken:load>
<!-- Slideshow that loads template data (featured content) -->
<koken:pulse />
<!-- 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 featured content found. Assign content in the Library.
</koken:note>
</koken:load>
<!-- Load featured essays -->
<koken:load source="featured_essays">
<h3>Featured essays</h3>
<ul class="feat-essays">
<!-- Loop over each featured essay -->
<koken:loop>
<li>
<!-- Display the essay's featured image -->
<koken:featured_image>
<!-- Link image to essay -->
<koken:link>
<!-- Display featured image cropped to 3:2 -->
<koken:img size="3:2" />
</koken:link>
</koken:featured_image>
<!-- Display essay title -->
<h4>
<koken:link title="Read {{ essay.title }}">{{ essay.title }}</koken:link>
</h4>
<!-- Display truncated essay excerpt plus link to essay -->
<p>
{{ essay.excerpt truncate="160" }} <koken:link title="Read {{ essay.title }}">more</koken:link>
</p>
</li>
</koken:loop>
</ul>
<!-- 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 featured essays found. Assign essays in Text.
</koken:note>
</koken:load>
</main> <!-- close main -->
<koken:include file="inc/footer.html" />