-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from myqianlan/master
感谢 @myqianlan 的PR
- Loading branch information
Showing
12 changed files
with
91 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ __MACOSX/ | |
public/ | ||
.deploy/ | ||
_SYNCAPP | ||
metadata.xml | ||
metadata.xml | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ menu: 菜单 | |
rss: RSS 订阅 | ||
showsidebar: 显示侧边栏 | ||
hidesidebar: 隐藏侧边栏 | ||
updated: 更新日期 | ||
updated: 更新日期 | ||
totop: 返回顶部 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ menu: 菜單 | |
rss: RSS 訂閱 | ||
showsidebar: 顯示側邊欄 | ||
hidesidebar: 隱藏側邊欄 | ||
updated: 更新日期 | ||
updated: 更新日期 | ||
totop: 返回頂部 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div id="totop"> | ||
<a title="<%= __('totop')%>"><img src="/img/scrollup.png"/></a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,43 @@ | ||
<% if(page.layout=='page'){ %> | ||
<% if(page.source.match(/\.md$/)){ %> | ||
<%- partial('_partial/head') %> | ||
<body> | ||
<div id="container"> | ||
<div id="wrap"> | ||
<%- partial('_partial/header', null, {cache: !config.relative_link}) %> | ||
<div class="outer"> | ||
<section id="main"><%- body %></section> | ||
<% if (theme.sidebar && theme.sidebar !== 'bottom'){ %> | ||
<%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %> | ||
<% } %> | ||
</div> | ||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %> | ||
<div id="container"> | ||
<div id="wrap"> | ||
<%- partial('_partial/header', null, {cache: !config.relative_link}) %> | ||
<div class="outer"> | ||
<section id="main"><%- body %></section> | ||
<% if (theme.sidebar && theme.sidebar !== 'bottom'){ %> | ||
<%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %> | ||
<% } %> | ||
</div> | ||
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %> | ||
<%- partial('_partial/after-footer') %> | ||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %> | ||
</div> | ||
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %> | ||
<%- partial('_partial/after-footer') %> | ||
</div> | ||
</body> | ||
</html> | ||
</html> | ||
<% }else{ %> | ||
<%- page.content %> | ||
<% } %> | ||
<% }else{ %> | ||
<%- partial('_partial/head') %> | ||
<body> | ||
<div id="container"> | ||
<div id="wrap"> | ||
<%- partial('_partial/header', null, {cache: !config.relative_link}) %> | ||
<div class="outer"> | ||
<section id="main"><%- body %></section> | ||
<% if (theme.sidebar && theme.sidebar !== 'bottom'){ %> | ||
<%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %> | ||
<% } %> | ||
</div> | ||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %> | ||
</div> | ||
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %> | ||
<%- partial('_partial/after-footer') %> | ||
</div> | ||
</body> | ||
</html> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#totop | ||
position fixed | ||
display none | ||
z-index 9999 | ||
bottom 5em | ||
right 1em | ||
cursor pointer | ||
@media tabletmax | ||
display none !important |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters