-
Notifications
You must be signed in to change notification settings - Fork 28
/
categories.lens
47 lines (36 loc) · 1.28 KB
/
categories.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
<koken:include file="inc/header.html" />
<!-- Load this template's source data (categories) -->
<koken:load>
<!-- Add Facebook Open Graph tags for nicer sharing -->
<koken:head>
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:title" content="{{ labels.category.plural }}" />
<meta property="og:description" content="{{ site.description strip_html='true' }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ location.site_url }}{{ location.here }}" />
</koken:head>
<section>
<h2>
{{ labels.category.plural }}
</h2>
<!-- Loop over them all -->
<koken:loop>
<p>
<!-- Link to category.lens to view all published content assigned the category -->
<koken:link title="View everything in {{ category.title }}">
<!-- Display the category's title -->
{{ category.title }} ({{ category.counts.total }})
</koken:link>
</p>
</koken:loop>
</section>
<!-- Display pagination links -->
<koken:include file="inc/pagination.html" />
<!-- 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 categories found
</koken:note>
</koken:load>
<koken:include file="inc/footer.html" />