From 079ec883cee6ca9c83f5c071388823c2f86c23bc Mon Sep 17 00:00:00 2001 From: bihlink <95501288+bihlink@users.noreply.github.com> Date: Fri, 15 Jul 2022 17:45:47 +0200 Subject: [PATCH] Update template.ejs --- lib/template.ejs | 105 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/lib/template.ejs b/lib/template.ejs index a209bfd..e58a8b2 100644 --- a/lib/template.ejs +++ b/lib/template.ejs @@ -26,7 +26,110 @@ - <% if (opts.theme && opts.theme.toLowerCase() == 'modern-light'){ %> +<% if (opts.theme && opts.theme.toLowerCase() == 'modern-light-min'){ %> +
+ <% if (opts.header !== false){ %> +
+ + +
+ + + +

<%= meta.title %>

+

<%- meta.description %>

+
+
+ <% } %> + + <% var filtered = items.filter(function(item){return !((item.isBoost && !opts.boosts) || (item.isReply && !opts.replies)) })%> + <% filtered.forEach(function(item){ %> +
+ <% if (item.isBoost) { %> +
<%- item.title %>
+ <% } %> +
+ + + + +
+
+ <% if (item.hasCw){ %> + <% var cwId = (item.cw+item.atomHref).replace(/\W+/g,'') %> + <%- item.cw %> + + + <% } %> + + <%- item.content %> + + <% if (item.enclosures.length > 0){ %> +
+ <% for (var i = 0; i < item.enclosures.length; i ++){ %> + <% var e = item.enclosures[i] %> + <% if (e.type.indexOf('audio') > -1) {%> +
+ <% } %> + +
+ <% }); %> +
+ <% if (nextPageLink){ %> + + <% } %> +
+ + <% if ( isIndex ){ %> + + + <% } %> + + <% else if (opts.theme && opts.theme.toLowerCase() == 'modern-light'){ %>
<% if (opts.header !== false){ %>