hexo-theme-ayer/layout/_partial/ayer.ejs
2019-12-15 09:29:13 +08:00

31 lines
1.1 KiB
Plaintext

<% if (theme.cover.enable) { %>
<section class="cover">
<% if (theme.github && theme.github.url){ %>
<%# "GitHub Ribbons" %>
<a class="forkMe" style="position:absolute;z-index:999;top:0;right:0" href="<%=theme.github.url%>"
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>
<% } %>
<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>
<h2><%= config.subtitle %></h2>
<div>
<% if (theme.cover.logo) { %>
<img
src="<%- theme.cover.logo %>"
class="cover-logo"
alt="<%= config.title %>"
/>
<% } %>
</div>
</div>
</div>
<div class="cover-learn-more">
<a href="#main" class="anchor"><i class="ri-arrow-down-line"></i></a>
</div>
</section>
<% } %>