2022-09-24 00:20:47 +08:00
|
|
|
<%
|
|
|
|
const {
|
|
|
|
description: fs_description,
|
|
|
|
hitokoto: fs_hitokoto
|
|
|
|
} = theme.style.first_screen
|
|
|
|
const { description: c_description } = config
|
|
|
|
%>
|
2020-12-24 21:20:14 +08:00
|
|
|
<div class="first-screen-container flex-center fade-in-down-animation">
|
2020-11-19 11:58:54 +08:00
|
|
|
<div class="content flex-center">
|
2022-09-24 00:20:47 +08:00
|
|
|
<% if (fs_description || c_description || fs_hitokoto.enable) { %>
|
|
|
|
<div class="description hitokoto">
|
|
|
|
<%= fs_description || c_description %>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
<% if (fs_hitokoto.enable) { %>
|
|
|
|
<script async <%= theme.pjax.enable === true ? 'data-pjax' : '' %>
|
|
|
|
src="https://v1.hitokoto.cn/?encode=js"
|
|
|
|
>
|
|
|
|
</script>
|
2022-04-27 14:30:06 +08:00
|
|
|
<% } %>
|
2020-11-15 22:06:32 +08:00
|
|
|
<% if (theme.social_contact.enable) { %>
|
2020-12-11 12:05:03 +08:00
|
|
|
<div class="s-icon-list">
|
2020-11-15 22:06:32 +08:00
|
|
|
<% for (const key in theme.social_contact.links) { %>
|
|
|
|
<% if(theme.social_contact.links[key]) { %>
|
|
|
|
<% if(key === 'email') { %>
|
2020-12-11 12:05:03 +08:00
|
|
|
<span class="s-icon-item <%= key %>">
|
2020-12-12 20:25:56 +08:00
|
|
|
<a href="mailto:<%- theme.social_contact.links[key] %>">
|
2020-11-24 10:55:24 +08:00
|
|
|
<i class="fas fa-envelope"></i>
|
2020-11-15 22:06:32 +08:00
|
|
|
</a>
|
2020-12-11 12:05:03 +08:00
|
|
|
</span>
|
2020-11-15 22:06:32 +08:00
|
|
|
<% } else { %>
|
2020-12-11 12:05:03 +08:00
|
|
|
<span class="s-icon-item <%= key %>">
|
2020-12-12 20:25:56 +08:00
|
|
|
<a target="_blank" href="<%- theme.social_contact.links[key] %>">
|
2020-11-24 10:55:24 +08:00
|
|
|
<i class="fab fa-<%= key %>"></i>
|
2020-11-15 22:06:32 +08:00
|
|
|
</a>
|
2020-12-11 12:05:03 +08:00
|
|
|
</span>
|
2020-11-15 22:06:32 +08:00
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
2020-12-11 12:05:03 +08:00
|
|
|
</div>
|
2020-11-15 22:06:32 +08:00
|
|
|
<% } %>
|
|
|
|
</div>
|
2020-11-13 14:43:22 +08:00
|
|
|
</div>
|