Update template.ejs

This commit is contained in:
bihlink 2022-07-15 18:12:12 +02:00 committed by GitHub
parent f6d60f9af9
commit 284a9d61d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,9 @@
<% if (opts.theme && opts.theme.toLowerCase() == 'modern-light-min'){ %>
<style>
@import url("https://maplefeed.bihlink.com/modern-light-min.css");
</style>
<% } else { %>
<html>
<head>
<meta charset="UTF-8"></meta>
@ -5,17 +11,13 @@
<base target="_top" /><!-- this element is amazing-->
<% if (opts.theme && opts.theme.toLowerCase() == 'light'){ %>
<link rel="stylesheet" href="/light.css"></link>
<link rel="stylesheet" href="https://maplefeed.bihlink.com/light.css"></link>
<% } else if (opts.theme && opts.theme.toLowerCase() == 'auto'){ %>
<link rel="stylesheet" href="/auto.css"></link>
<link rel="stylesheet" href="https://maplefeed.bihlink.com/auto.css"></link>
<% } else if (opts.theme && opts.theme.toLowerCase() == 'dark'){ %>
<link rel="stylesheet" href="/dark.css"></link>
<% } else if (opts.theme && opts.theme.toLowerCase() == 'modern-light-min') { %>
<style>
@import url("https://maplefeed.bihlink.com/modern-light-min.css");
</style>
<link rel="stylesheet" href="https://maplefeed.bihlink.com/dark.css"></link>
<% } else { %>
<link rel="stylesheet" href="/modern-light.css"></link>
<link rel="stylesheet" href="https://maplefeed.bihlink.com/modern-light.css"></link>
<% } %>
<% if (opts.size){ %>
@ -28,6 +30,8 @@
</head>
<body>
<% } %>
<% if (opts.theme && opts.theme.toLowerCase() == 'modern-light'){ %>
<div class="container-fluid mt-2">
<% if (opts.header !== false){ %>