实验室链接

This commit is contained in:
结发受长生 2018-05-25 11:53:42 +08:00
parent afe8229f86
commit ec821a56c5
4 changed files with 18 additions and 22 deletions

View File

@ -94,19 +94,15 @@ archives:
date_format: YYYY年MM月 date_format: YYYY年MM月
#---------------------------- #----------------------------
# 友情链接 # 常用链接
#---------------------------- #----------------------------
friends: links:
enable: false enable: true
list: list:
1: 1:
name: google name: 实验室
title: 谷歌 link: /lab/
link: https://www.google.com.hk/ target: _self
2:
name: youtube
title: 油管
link: https://www.youtube.com/
#---------------------------- #----------------------------
# 头部链接 # 头部链接

View File

@ -19,11 +19,11 @@
</section> </section>
<% } %> <% } %>
<% if (theme.friends.enable && theme.friends['list']) { %> <% if (theme.links.enable && theme.links['list']) { %>
<!-- 友情链接 --> <!-- 常用链接 -->
<section class="widget"> <section class="widget">
<h3 class="widget-hd"><strong>友情链接</strong></h3> <h3 class="widget-hd"><strong>常用链接</strong></h3>
<%- partial('_widget/friend_links') %> <%- partial('_widget/links') %>
</section> </section>
<% } %> <% } %>
</aside> </aside>

View File

@ -1,8 +0,0 @@
<!-- 友情链接 -->
<ul class="widget-bd">
<% for (var i in theme.friends['list']) { %>
<li>
<a href="<%= list[i].link %>" target="_blank" title="<%= theme.friends['list'][i].title %>"><%= theme.friends['list'][i].name %></a>
</li>
<% } %>
</ul>

View File

@ -0,0 +1,8 @@
<!-- 常用链接 -->
<ul class="widget-bd">
<% for (var i in theme.links['list']) { %>
<li>
<a href="<%= theme.links.list[i].link %>" target="<%= theme.links.list[i].target || '_blank' %>" ><%= theme.links.list[i].name %></a>
</li>
<% } %>
</ul>