diff options
author | Doge <[email protected]> | 2021-05-13 10:35:35 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-13 10:35:35 +0800 |
commit | 7dcd9aea80061bdcdbafb172e478213a962c2f6c (patch) | |
tree | 61187b84e8e6c4057168b8ece54a075863de7aa6 /layout | |
parent | 073c4f91a4525f2ba38c46cb652e79752619374c (diff) | |
download | chromate-7dcd9aea80061bdcdbafb172e478213a962c2f6c.tar.gz chromate-7dcd9aea80061bdcdbafb172e478213a962c2f6c.tar.bz2 chromate-7dcd9aea80061bdcdbafb172e478213a962c2f6c.zip |
Add extension tags with rendering meta
Diffstat (limited to 'layout')
-rw-r--r-- | layout/post.ejs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/layout/post.ejs b/layout/post.ejs index ffa49e6..1e75de4 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -39,48 +39,7 @@ </script> <% } %> <section class="content is-size-6"> - <%- page.content %> - - <!-- Add podcast authors --> - - <% if (page.podcast && page.podcast.authors) { %> - <h3><%= __('authors') %>: </h3> - <ul> - <% (page.podcast.authors).forEach(function(author) { %> - <li><%= author %></li> - <% }); %> - </ul> - <% } %> - - <!-- Add podcast chapters --> - <% if (page.podcast && page.podcast.chapters) { %> - <h3><%= __('timeline') %>: </h3> - <ul> - <% (page.podcast.chapters).forEach(function(item) { %> - <% - const title = item[0]; - const timestamp = item[1]; - const hour = Math.floor(timestamp / 3600); - const minute = Math.floor((timestamp / 60) % 60); - const second = Math.floor(timestamp % 60); - const viewstr = String(hour).padStart(2, '0') + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0'); - %> - <li class="is-family-monospace"><a href="#t=<%= viewstr %>" onclick="eval('player.seek(<%= timestamp %>)')"><%= viewstr %></a> <%= title %></li> - <% }); %> - </ul> - <% } %> - - <!-- Add podcast references --> - <% if (page.podcast && page.podcast.references) { %> - <h3><%= __('references') %>: </h3> - <ul> - <% (page.podcast.references).forEach(function(item) { %> - <li><a href="<%= item[1] %>" rel="noopener"><%= item[0] %></a></li> - <% }); %> - </ul> - <% } %> - </section> <div class="level"> <div class="level-left"> |