From 0090a12718400e9d3b230d85b93d54056eaede76 Mon Sep 17 00:00:00 2001 From: Doge Date: Sat, 15 May 2021 16:24:28 +0800 Subject: Change tags style --- layout/index.ejs | 51 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 14 deletions(-) (limited to 'layout') diff --git a/layout/index.ejs b/layout/index.ejs index 1a506a6..1046eea 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -31,20 +31,41 @@ <% if (post.podcast && theme.podcast) { %> -
- <% - const duration = post.podcast.duration; - const hour = Math.floor(duration / 3600); - const minute = Math.floor((duration / 60) % 60); - const second = Math.floor(duration % 60); - const viewstr = hour + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0'); - %> - <%- viewstr %> - <%- date(post.date, theme.timeformat) %> +
+
+
+ <% + const duration = post.podcast.duration; + const hour = Math.floor(duration / 3600); + const minute = Math.floor((duration / 60) % 60); + const second = Math.floor(duration % 60); + const viewstr = hour + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0'); + %> + + + + + <%- viewstr %> + +
+
+
+
+ + + + + <%- date(post.date, theme.timeformat) %> + +
+
<% } else { %> -
- +
+ + + + <%- date(post.date, theme.timeformat) %>
@@ -53,10 +74,12 @@
- <% if (post.tags) { %> + <% if (post.tags) { %>
<% (post.tags).forEach(function(item) { %> - # <%= item.name %> + + # <%= item.name %> + <% }); %>
<% } %> -- cgit v1.2.3