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.

52 lines
2.3 KiB

5 years ago
<div class='l_main<%- page.sidebar == false ? ' no_sidebar' : '' %>'>
5 years ago
<article id="<%= page.layout %>" class="post white-box article-type-<%= page.layout %>" itemscope itemprop="blogPost">
5 years ago
<%- partial('_partial/meta',{post:page, position:'header'}) %>
5 years ago
<section class="article typo l_friends">
<% if (page.links){ %>
<% (page.links||[]).forEach(function(group){ %>
<% if(group.items) { %>
<div class='friends-group'>
<% if(group.group) { %>
5 years ago
<br>
<h3 class='friend-header'>
5 years ago
<% if (group.icon) { %>
<i class="<%= group.icon %> fa-fw" aria-hidden="true"></i>
<%} %>
<%= group.group %>
5 years ago
</h3>
5 years ago
<%} %>
<div class='friend-content'>
<% (group.items||[]).forEach(function(item){ %>
<a class='friend-card' style='background:<%- item.backgroundColor %>; color:<%- item.textColor %>'
target="_blank" rel="external nofollow noopener noreferrer" href='<%- url_for(item.url) %>'>
<div class='friend-left'>
5 years ago
<img class='avatar' src='<%- theme.avatar_placeholder %>' data-echo='<%- url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>
5 years ago
</div>
<div class='friend-right'>
<p class="friend-name"><%- item.name %></p>
<% if(item.tags){ %>
<div class='friend-tags-wrapper'>
<% (item.tags||[]).forEach(function(tag){ %>
<p class="tags"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i><%= tag %></p>
<% }) %>
</div>
<% } %>
</div>
</a>
<% }) %>
</div>
6 years ago
</div>
5 years ago
<%} %>
<% }) %>
<% } %>
5 years ago
<br><br>
5 years ago
<%- page.content %>
</section>
</article>
6 years ago
5 years ago
<%- partial('_third-party/comments') %>
</div>
<%- partial('_partial/side') %>
5 years ago
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>