fix: prevent interception rename social -> s

This commit is contained in:
XPoet 2020-11-27 14:56:50 +08:00
parent 79b38c7ef1
commit b1a03ec5d5
2 changed files with 5 additions and 5 deletions

View File

@ -4,17 +4,17 @@
<%= theme.style.first_screen.description || config.description %>
</div>
<% if (theme.social_contact.enable) { %>
<ul class="social-icon-list">
<ul class="s-icon-list">
<% for (const key in theme.social_contact.links) { %>
<% if(theme.social_contact.links[key]) { %>
<% if(key === 'email') { %>
<li class="social-icon-item <%= key %>">
<li class="s-icon-item <%= key %>">
<a href="mailto:<%- url_for(theme.social_contact.links[key]) %>">
<i class="fas fa-envelope"></i>
</a>
</li>
<% } else { %>
<li class="social-icon-item <%= key %>">
<li class="s-icon-item <%= key %>">
<a href="<%- url_for(theme.social_contact.links[key]) %>">
<i class="fab fa-<%= key %>"></i>
</a>

View File

@ -18,14 +18,14 @@
text-align: center;
}
.social-icon-list {
.s-icon-list {
position: absolute;
bottom: $component-interspace;
font-size: 1.6em;
left: 50%;
transform: translateX(-50%);
.social-icon-item {
.s-icon-item {
float: left;
margin-right: 25px;
cursor: pointer;