Skip to content

Commit 3d85ba5

Browse files
committed
add 开往的外链放置在最显眼的位置
1 parent b24a517 commit 3d85ba5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

themes/diaspora/_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ menu:
66
归档: /archives
77
友链: /links
88
关于: /about
9+
# 开往: https://www.travellings.cn/go.html
910

1011
# 是否显示目录
1112
# 决定了是否在你的文章页面生成 Table of Contents(文章目录)。
1213
# 默认抓取:只要你文章里用了 ## 或 ### 这种标题语法,目录就会自动出现。
1314
# 即使你在全局 _config.yml 里设置了 TOC: false,
1415
# 你依然可以在单篇文章的开头(Front-matter)里单独开启它。
15-
TOC: false
16+
TOC: true
1617

1718
# 是否自动播放音乐
1819
autoplay: false

themes/diaspora/layout/_partial/screen.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
</div>
1414
<div id="header">
1515
<div>
16-
<a class="image-logo" href="/"></a>
16+
<!--<a class="image-logo" href="/"></a>-->
17+
<a href="https://www.travellings.cn/go.html" target="_blank" title="开往">
18+
<img src="/img/friends/travellings.png" alt="开往" style="height: 36px; opacity: 0.95;border-radius: 12px; vertical-align: middle; margin-left: 10px;">
19+
<span style="margin-left: 8px; font-size: 14px; vertical-align: middle;color: chocolate;">开往:友链随机传送门</span>
20+
</a>
1721
<% if (theme.local_search.enable){ %>
1822
<div class="iconfont icon-search switchsearch" href="<%= url_for('/search/') %>" title="搜索"></div>
1923
<%}%>

0 commit comments

Comments
 (0)