-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一些优化 #39
Merged
Merged
一些优化 #39
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9a9c53c
增加返回顶部模块
myqianlan 04ccd59
修改渲染方式,现在默认page布局下仅渲染 .md 文件格式,其他格式一律只做复制。(方便添加静态页面,原本需要在每个文件开头添加 **l…
myqianlan 60541be
移除编辑器文件
myqianlan 2a7bf3a
移除编辑器文件
myqianlan 8babd4a
移除编辑器文件
myqianlan 774e8f7
添加**mathjax**的模块开关,不需要的可以自己关闭。(因为加载略耗时间)
myqianlan 18826ba
添加**mathjax**的模块开关,不需要的可以自己关闭。(因为加载略耗时间)
myqianlan e43b179
返回顶部加入语言包
myqianlan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totop
的简体和繁体翻译There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.返回顶部的图片我加进去了,只不过要在高度为1000px的时候才显示
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我本地测试的时候,图片挂掉了,需要设置路径为
./img/scrollup.png
感谢回复如此之快~