添加网盘链接

This commit is contained in:
结发受长生 2018-07-10 16:24:05 +08:00
parent 733b78ccff
commit a93bc6ec29
10 changed files with 19 additions and 5 deletions

View File

@ -1,8 +1,16 @@
# Header
menu:
home: /
laboratory: /lab/
home: # 主页
name: home
url: /
netdisc: # 网盘
name: netdisc
url: http://www.colorfulsweet.site:8090/
target: _blank
laboratory: # 实验室
name: laboratory
url: /lab/
# SubNav
subnav:

View File

@ -16,5 +16,6 @@ show_full_text: Show Full Text
home: Homepage
informal_essay: Informal Essay
laboratory: Laboratory
netdisc: Netdisc
all_articles: All Articles
about_me: About Me

View File

@ -16,5 +16,6 @@ show_full_text: Voir le texte intégral de la
home: Homepage
informal_essay: Essais
laboratory: Laboratoires
netdisc: Disque réseau
all_articles: Tous les articles
about_me: À propos de moi

View File

@ -16,5 +16,6 @@ show_full_text: 記事全体を見る
home: ホーム
informal_essay: エッセイ
laboratory: 研究室
netdisc: ネットワークディスク
all_articles: すべての記事
about_me: 私について

View File

@ -16,5 +16,6 @@ show_full_text: просмотреть полный текст
home: дома
informal_essay: эссе
laboratory: лаборатория
netdisc: Сетевой диск
all_articles: Все статьи
about_me: Обо мне

View File

@ -16,5 +16,6 @@ show_full_text: 查看全文
home: 主页
informal_essay: 随笔
laboratory: 实验室
netdisc: 网盘
all_articles: 所有文章
about_me: 关于我

View File

@ -16,5 +16,6 @@ show_full_text: 查看全文
home: 主頁
informal_essay: 隨筆
laboratory: 實驗室
netdisc: 網盤
all_articles: 所有文章
about_me: 關於我

View File

@ -15,7 +15,7 @@
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<% for (let menuName in theme.menu){ %>
<a class="main-nav-link" href="<%- url_for(theme.menu[menuName]) %>"><%= __(menuName) %></a>
<a class="main-nav-link" href="<%- url_for(theme.menu[menuName].url) %>" target="<%= theme.menu[menuName].target || '_self' %>"><%= __(theme.menu[menuName].name) %></a>
<% } %>
</nav>
<nav id="sub-nav">

View File

@ -15,7 +15,7 @@
<nav class="header-menu">
<ul>
<% for (let menuName in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[menuName]) %>"><%= __(menuName) %></a></li>
<li><a href="<%- url_for(theme.menu[menuName].url) %>" target="<%= theme.menu[menuName].target || '_self' %>"><%= __(theme.menu[menuName].name) %></a></li>
<% } %>
</ul>
</nav>

View File

@ -29,7 +29,7 @@
<ul style="width: <%= ulWidth %>">
<% var divide = 100 / count + '%' %>
<% for (let menuName in theme.menu){ %>
<li style="width: <%= divide %>"><a href="<%- url_for(theme.menu[menuName]) %>"><%= __(menuName) %></a></li>
<li style="width: <%= divide %>"><a href="<%- url_for(theme.menu[menuName].url) %>"><%= __(theme.menu[menuName].name) %></a></li>
<%}%>
</ul>
</nav>