Skip to content

Commit

Permalink
🐞 fix: 修复友链页渲染异常
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Sep 7, 2022
1 parent b11acfc commit 00ffa7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package/hexo-theme-async/layout/links.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
</div>
</div>

<% if(Array.isArray(theme.links)){ theme.links.forEach(item=>{%>
<% if(Array.isArray(theme.links)){ %>
<div class="row trm-mb-20">
<div class="col-lg-12">
<h5 class="trm-mb-40 trm-title-with-divider">
<%-__('title.links')%>
<span data-number="02"></span>
</h5>
</div>
<% theme.links.forEach(item=>{%>
<div class="col-lg-6">
<a href='<%- item.url %>' target='_blank' rel="nofollow">
<div class="trm-service-icon-box trm-scroll-animation trm-p-20" data-scroll data-scroll-offset="40">
Expand All @@ -71,8 +71,9 @@
</div>
</a>
</div>
<%})%>
</div>
<%}) } %>
<% } %>

<%- partial('./_partial/comment',{ titleHide: false }) %>

Expand Down

0 comments on commit 00ffa7b

Please sign in to comment.