You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

4 years ago
<%- partial('_pre') %>
<section class="widget <%- item.class %> <%- page.widget_style %> <%- page.widget_platform %>">
4 years ago
<div class='content'>
6 years ago
<% if(item.avatar) { %>
<div class='avatar'>
4 years ago
<img class='avatar' src='<%- item.avatar %>'/>
6 years ago
</div>
<%} %>
4 years ago
<% if (item.title || item.subtitle || item.jinrishici) { %>
6 years ago
<div class='text'>
<% if (item.title){ %>
<h2><%- item.title %></h2>
<% } %>
4 years ago
<% if (item.subtitle){ %>
<%- markdown(item.subtitle) %>
6 years ago
<% } %>
<% if (item.jinrishici){ %>
6 years ago
<p><span id="jinrishici-sentence"><%- item.jinrishici != true ? item.jinrishici : config.title %></span></p>
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
<% } %>
6 years ago
</div>
6 years ago
<% } %>
<% if (item.social == true && theme.footer.social) { %>
6 years ago
<div class="social-wrapper">
<% (theme.footer.social||[]).forEach(function(value){ %>
6 years ago
<% if (value.url && value.icon) { %>
5 years ago
<a href="<%- url_for(value.url) %>"
class="social <%- value.icon %> flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
6 years ago
<%}%>
<%})%>
</div>
6 years ago
<% } %>
6 years ago
</div>
6 years ago
</section>