blob: e0eed90262bd86f835da8ade6b27ab4fedcc6a70 (
plain)
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
|
<article class="post">
<!-- Post thumbnail with lazayload support -->
<div class="post-thumbnail" style="background-image: url('<%= page.thumbnail %>');"></div>
<!-- Podcast Player using Shikwasa -->
<% if (page.podcast) { %>
<div class="post-podcast-player"></div>
<script>
window.addEventListener("load", () => {
const player = new Shikwasa({
container: () => document.querySelector('.post-podcast-player'),
audio: {
title: "<%= page.title %>",
artist: "<%= page.podcast.author %>",
cover: "<%= page.podcast.thumbnail %>",
src: "<%= page.podcast.media %>"
},
fixed: {
type: "static"
}
});
}, false);
</script>
<% } %>
<!-- Post title and content -->
<div class="post-meta">
<div class="post-time">
<%- date(page.date, theme.timeformat) %>
</div>
</div>
<h1 class="post-title"><%= page.title %></h1>
<div class="post-content"><%- page.content %></div>
</article>
|