hexo-theme-keep/layout/_partial/first-screen.ejs

32 lines
1.4 KiB
Plaintext

<div class="first-screen-container flex-center fade-in-down-animation">
<div class="content flex-center">
<div class="description hitokoto">
<%= theme.style.first_screen.description || config.description %>
</div>
<% if (theme.style.first_screen.hitokoto) { %>
<script data-pjax="" src="<%- theme.style.first_screen.hitokoto %>"></script>
<% } %>
<% if (theme.social_contact.enable) { %>
<div class="s-icon-list">
<% for (const key in theme.social_contact.links) { %>
<% if(theme.social_contact.links[key]) { %>
<% if(key === 'email') { %>
<span class="s-icon-item <%= key %>">
<a href="mailto:<%- theme.social_contact.links[key] %>">
<i class="fas fa-envelope"></i>
</a>
</span>
<% } else { %>
<span class="s-icon-item <%= key %>">
<a target="_blank" href="<%- theme.social_contact.links[key] %>">
<i class="fab fa-<%= key %>"></i>
</a>
</span>
<% } %>
<% } %>
<% } %>
</div>
<% } %>
</div>
</div>