Repository navigation
Expand file tree
/
Copy pathindex.lens
More file actions
111 lines (84 loc) · 3.36 KB
/
Copy pathindex.lens
File metadata and controls
111 lines (84 loc) · 3.36 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<koken:include file="inc/header.html" />
<!-- Load this template's source data (featured content) -->
<koken:load>
<!-- Add Facebook Open Graph and Twitter Cards metadata for nicer sharing -->
<koken:head>
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:title" content="{{ site.title }}" />
<meta property="og:description" content="{{ site.description strip_html='true' }}" />
<meta property="og:type" content="website" />
<koken:first>
<meta property="og:image" content="{{ content.presets.medium_large.url }}" />
<meta property="og:image:width" content="{{ content.presets.medium_large.width }}" />
<meta property="og:image:height" content="{{ content.presets.medium_large.height }}" />
</koken:first>
<meta property="og:url" content="{{ location.site_url }}{{ location.here }}" />
<koken:not empty="profile.twitter">
<meta name="twitter:card" content="gallery" />
<meta name="twitter:site" content="@{{ profile.twitter }}" />
<meta name="twitter:creator" content="@{{ profile.twitter }}" />
<koken:loop limit="4">
<meta name="twitter:image{{ index }}" content="{{ content.presets.medium_large.cropped.url }}">
</koken:loop>
</koken:not>
</koken:head>
<!-- Slideshow that loads template data (featured content) -->
<div class="slideshow">
<koken:pulse jsvar="pulse" next="#sldshw_next" previous="#sldshw_prev" toggle="#sldshw_play" fullscreen="#sldshw_fs" restart="#sldshw_restart" fallbacktext="No featured content found. Assign some in the Library." />
</div>
<!-- Basic slideshow navigation example -->
<div class="slideshow_nav">
<a href="#" id="sldshw_restart">Restart</a> / <a href="#" id="sldshw_prev">Previous</a> / <a href="#" id="sldshw_next">Next</a> / <a href="#" id="sldshw_play">Pause</a> / <a href="#" id="sldshw_fs">Full screen</a>
</div>
<!-- Optional script to change playback toggle text -->
<script>
pulse.on( 'playing', function(isPlaying) {
var el = $('#sldshw_play');
if (isPlaying) {
el.html('Pause');
} else {
el.html('Play');
}
});
</script>
<!-- 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 title="Read {{ essay.title }}">
<!-- 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>
<koken:include file="inc/footer.html" />