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) { %>
<section class='m_widget author'>
<% if(theme.widgets.author.avatar == true && config.avatar) { %>
<div class='header'>
<img class='avatar' src='<%= url_for(config.avatar) %>'/>
</div>
<%} %>
<% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %>
<div class='content'>
<% if (theme.widgets.author.title == true){ %>
<h2><%= config.title %></h2>
<% } %>
<% if (theme.widgets.author.motto){ %>
<p><%= config.motto %></p>
<% } %>
</div>
<section class='m_widget author'>
<% if(theme.widgets.author.avatar) { %>
<div class='header'>
<img class='avatar' src='<%= url_for(config.avatar ? config.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>
</div>
<%} %>
<% if (theme.widgets.author.title == true || theme.widgets.author.motto == true){ %>
<div class='content'>
<% if (theme.widgets.author.title == true){ %>
<h2><%= config.title %></h2>
<% } %>
<% 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>
<% if (theme.widgets.author.motto){ %>
<p><%= config.motto %></p>
<% } %>
</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