i18n
xaoxuu 6 years ago
parent d51e2008e9
commit c95ed932a4
  1. 48
      layout/_widget/author.ejs

@ -1,28 +1,28 @@
<% if(theme.widgets.author.enable != false) { %> <% if(theme.widgets.author.enable != false) { %>
<section class='m_widget author'> <section class='m_widget author'>
<% if(theme.widgets.author.avatar == true && config.avatar) { %> <% if(theme.widgets.author.avatar) { %>
<div class='header'> <div class='header'>
<img class='avatar' src='<%= url_for(config.avatar) %>'/> <img class='avatar' src='<%= url_for(config.avatar ? config.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>
</div> </div>
<%} %> <%} %>
<% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %> <% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %>
<div class='content'> <div class='content'>
<% if (theme.widgets.author.title == true){ %> <% if (theme.widgets.author.title == true){ %>
<h2><%= config.title %></h2> <h2><%= config.title %></h2>
<% } %>
<% if (theme.widgets.author.motto){ %>
<p><%= config.motto %></p>
<% } %>
</div>
<% } %> <% } %>
<% if (theme.widgets.author.social == true && config.social){ %> <% if (theme.widgets.author.motto){ %>
<div class="social-wrapper"> <p><%= config.motto %></p>
<% (config.social||[]).forEach(function(value){ %>
<% if (value.url && value.icon) { %>
<a href="<%= value.url %>" class="social flat-box" target="_blank" rel="external"><i class="social <%= value.icon %>" aria-hidden="true"></i></a>
<%}%>
<%})%>
</div>
<% } %> <% } %>
</section> </div>
<% } %>
<% if (theme.widgets.author.social == true && config.social){ %>
<div class="social-wrapper">
<% (config.social||[]).forEach(function(value){ %>
<% if (value.url && value.icon) { %>
<a href="<%= value.url %>" class="social flat-box" target="_blank" rel="external"><i class="social <%= value.icon %>" aria-hidden="true"></i></a>
<%}%>
<%})%>
</div>
<% } %>
</section>
<% } %> <% } %>

Loading…
Cancel
Save