<% if (page.thumbnail) { %>
<% if (theme.lazyload === true) { %> <% } else { %> <% } %>
<% } %>

<%= page.title %>

<% if (page.podcast) { %>
<% if (page.podcast.chapters) { %> <% let final = page.podcast.duration; let timestamps = []; let data = page.podcast.chapters; let chapters = []; (data).forEach((chapter) => { timestamps.push(chapter[1]); }); timestamps.push(final); for (let index = 0; index < timestamps.length - 1; index++) { let start = timestamps[index]; let end = timestamps[index + 1]; chapters.push({ title: data[index][0], startTime: start, endTime: end }); }; %> <% } %> <% } %>
<%- page.content %>
<% if (page.tags) { %>
<%- date(page.date, theme.timeformat) %> <% (page.tags).forEach(function(item) { %> # <%= item.name %> <% }); %>
<% } %>