2019-12-03 11:37:44 +00:00
|
|
|
<% if (theme.cover.enable) { %>
|
|
|
|
<section class="cover">
|
2020-04-06 07:17:17 +00:00
|
|
|
<% if (theme.github.enable && theme.github.url){ %>
|
2019-12-15 01:29:13 +00:00
|
|
|
<%# "GitHub Ribbons" %>
|
2019-12-15 01:37:23 +00:00
|
|
|
<a class="forkMe" href="<%=theme.github.url%>"
|
2019-12-15 01:29:13 +00:00
|
|
|
target="_blank"><img width="149" height="149" src="<%- url_for('images/forkme.png') %>"
|
|
|
|
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
|
|
|
|
<% } %>
|
2019-12-03 11:37:44 +00:00
|
|
|
<div class="cover-frame">
|
|
|
|
<div class="bg-box">
|
|
|
|
<img src="<%- theme.cover.path %>" alt="image frame" />
|
|
|
|
</div>
|
|
|
|
<div class="cover-inner text-center text-white">
|
|
|
|
<h1><a href="<%- url_for() %>"><%= config.title %></a></h1>
|
2020-01-30 06:14:35 +00:00
|
|
|
<div id="subtitle-box">
|
|
|
|
<% if (theme.subtitle.enable) { %>
|
|
|
|
<span id="subtitle"></span>
|
|
|
|
<% }else{ %>
|
|
|
|
<span id="subtitle"><%= theme.subtitle.text %></span>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2019-12-03 11:37:44 +00:00
|
|
|
<div>
|
2019-12-05 14:17:35 +00:00
|
|
|
<% if (theme.cover.logo) { %>
|
2019-12-03 11:37:44 +00:00
|
|
|
<img
|
|
|
|
src="<%- theme.cover.logo %>"
|
|
|
|
class="cover-logo"
|
|
|
|
alt="<%= config.title %>"
|
|
|
|
/>
|
2019-12-05 14:17:35 +00:00
|
|
|
<% } %>
|
2019-12-03 11:37:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cover-learn-more">
|
2020-01-09 11:55:59 +00:00
|
|
|
<a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
|
2019-12-03 11:37:44 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-02-05 03:27:16 +00:00
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if (theme.subtitle.enable){ %>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>
|
2020-06-28 13:59:40 +00:00
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- Subtitle -->
|
|
|
|
<% if (theme.subtitle.enable){ %>
|
|
|
|
<script>
|
|
|
|
try {
|
|
|
|
var typed = new Typed("#subtitle", {
|
|
|
|
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
|
|
|
|
startDelay: <%= theme.subtitle.startDelay %>,
|
|
|
|
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
|
|
|
loop: <%= theme.subtitle.loop %>,
|
|
|
|
backSpeed: <%= theme.subtitle.backSpeed %>,
|
|
|
|
showCursor: <%= theme.subtitle.showCursor %>
|
|
|
|
});
|
|
|
|
} catch (err) {
|
|
|
|
console.log(err)
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<% } %>
|