-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathessays.lens
36 lines (29 loc) · 931 Bytes
/
essays.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
<koken:include file="inc/header.html" />
<div class="container">
<koken:load>
<ul class="accordion" data-accordion data-allow-all-closed="true">
<koken:loop>
<li class="accordion-item" data-accordion-item>
<!-- Accordion tab title -->
<a href="#" class="accordion-title">{{ essay.title }}</a>
<!-- Accordion tab content: it would start in the open state due to using the `is-active` state class. -->
<div class="accordion-content" data-tab-content>
<p>{{ essay.excerpt }}</p>
<a href="{{ essay.url }}" class="button">More</a>
</div>
</li>
</koken:loop>
</ul>
<koken:else>
<koken:note>
No published essays found
</koken:note>
</koken:load>
</div>
<koken:include file="inc/footer.html" />
<!-- Scripts -->
<koken:asset file="js/vendor/foundation.js" />
<koken:asset file="js/theme.js" />
<script>
$(".accordion-item:first").addClass("is-active");
</script>