Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
250db90c
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
250db90c
编写于
8月 06, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Optimize code
上级
82e7afe0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
29 addition
and
23 deletion
+29
-23
languages/en.yml
languages/en.yml
+9
-4
languages/zh-CN.yml
languages/zh-CN.yml
+9
-4
layout/_third-party/advertising/google-adsense.pug
layout/_third-party/advertising/google-adsense.pug
+0
-0
layout/_third-party/advertising/index.pug
layout/_third-party/advertising/index.pug
+1
-1
source/js/algolia-search.js
source/js/algolia-search.js
+4
-4
source/js/header.js
source/js/header.js
+1
-2
source/js/scroll.js
source/js/scroll.js
+1
-3
source/js/utils.js
source/js/utils.js
+4
-5
未找到文件。
languages/en.yml
浏览文件 @
250db90c
...
...
@@ -62,15 +62,20 @@ post:
author
:
Author
link
:
Link
license_title
:
Copyright
license_content
:
'
All
articles
in
this
blog
are
licensed
under
<a
href="%s"
rel="external
nofollow"
target="_blank">%s</a>
unless
stating
additionally
'
license_content
:
All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally
#
S
earch
#
Algolia s
earch
algolia_search
:
input_placeholder
:
Search for Posts
hits_empty
:
"
We
didn't
find
any
results
for
the
search:
${query}"
hits_stats
:
"
${hits}
results
found
in
${time}
ms"
# Local search
local_search
:
input_placeholder
:
Start to search
hits_empty
:
We didn't find any results for the search
# Reward
reward
:
btn_text
:
Buy me a coffee
...
...
@@ -87,7 +92,7 @@ back2top: Back to top
# Site footer
footer
:
powered
:
'
Powered
by
%s'
powered
:
Powered by %s
theme
:
Theme
uv
:
Visitors
pv
:
Views
...
...
languages/zh-CN.yml
浏览文件 @
250db90c
...
...
@@ -56,14 +56,14 @@ post:
read_more
:
阅读全文
fire
:
热度
sticky
:
置顶文章
untitled
:
( 文章
未命名
)
untitled
:
( 文章
无标题
)
end
:
本文结束,感谢您的阅读
copyright
:
author
:
本文作者
link
:
本文链接
license_title
:
版权声明
license_content
:
'
本博客所有文章除特别声明外,均采用
<a
href="%s"
rel="external
nofollow"
target="_blank">%s</a>
许可协议。转载请注明出处!
'
license_content
:
本博客所有文章除特别声明外,均采用
<a href="%s" rel="external nofollow" target="_blank">%s</a> 许可协议。转载请注明出处!
# Algolia 搜索
algolia_search
:
...
...
@@ -71,6 +71,11 @@ algolia_search:
hits_empty
:
"
没有找到任何搜索结果:${query}"
hits_stats
:
"
找到
${hits}
条搜索结果,耗时
${time}
毫秒"
# 本地搜索
local_search
:
input_placeholder
:
开始搜索
hits_empty
:
没有找到任何搜索结果
# 打赏
reward
:
btn_text
:
请我喝杯咖啡~
...
...
@@ -87,7 +92,7 @@ back2top: 回到顶部
# 网站底部
footer
:
powered
:
'
由
%s
强力驱动'
powered
:
由 %s 强力驱动
theme
:
主题
uv
:
访问人数
pv
:
浏览总量
...
...
layout/_third-party/advertising/google
_
adsense.pug
→
layout/_third-party/advertising/google
-
adsense.pug
浏览文件 @
250db90c
文件已移动
layout/_third-party/advertising/index.pug
浏览文件 @
250db90c
if theme.google_adsense && theme.google_adsense.enable
include ./google
_
adsense.pug
include ./google
-
adsense.pug
source/js/algolia-search.js
浏览文件 @
250db90c
$
(
document
).
ready
(
function
()
{
$
(
'
.header-nav-search
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.header-nav-search
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
'
body
'
).
css
(
'
overflow
'
,
'
hidden
'
);
$
(
'
.algolia-popup
'
)
.
velocity
(
'
stop
'
)
...
...
@@ -20,9 +22,7 @@ $(document).ready(function () {
closeSearch
();
});
$
(
document
).
on
(
'
keydown
'
,
function
(
ev
)
{
var
e
=
ev
||
window
.
event
;
$
(
document
).
on
(
'
keydown
'
,
function
(
e
)
{
// Escape <=> 27
if
(
e
.
keyCode
===
Stun
.
utils
.
codeToKeyCode
(
'
Escape
'
))
{
closeSearch
();
...
...
source/js/header.js
浏览文件 @
250db90c
...
...
@@ -5,8 +5,7 @@ $(document).ready(function () {
$menu
.
removeClass
(
'
show
'
);
});
$
(
'
.header-nav-menu a
'
).
on
(
'
click
'
,
function
(
ev
)
{
var
e
=
ev
||
window
.
event
;
$
(
'
.header-nav-menu a
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
});
...
...
source/js/scroll.js
浏览文件 @
250db90c
...
...
@@ -17,9 +17,7 @@ $(document).ready(function () {
});
// Click the post toc.
$
(
'
.toc-link
'
).
on
(
'
click
'
,
function
(
ev
)
{
var
e
=
ev
||
window
.
event
;
$
(
'
.toc-link
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
();
scrollHeadingToTop
(
$
(
this
).
attr
(
'
href
'
));
});
...
...
source/js/utils.js
浏览文件 @
250db90c
...
...
@@ -74,7 +74,8 @@ Stun.utils = Stun.$u = {
var
codes
=
{
ArrowLeft
:
37
,
ArrowRight
:
39
,
Escape
:
27
Escape
:
27
,
Enter
:
13
};
return
codes
[
code
];
...
...
@@ -264,8 +265,7 @@ Stun.utils = Stun.$u = {
registerSwitchPost
:
function
()
{
var
_this
=
this
;
$
(
document
).
on
(
'
keydown
'
,
function
(
ev
)
{
var
e
=
ev
||
window
.
event
;
$
(
document
).
on
(
'
keydown
'
,
function
(
e
)
{
var
isPrev
=
e
.
keyCode
===
_this
.
codeToKeyCode
(
'
ArrowLeft
'
);
var
isNext
=
e
.
keyCode
===
_this
.
codeToKeyCode
(
'
ArrowRight
'
);
...
...
@@ -315,8 +315,7 @@ Stun.utils = Stun.$u = {
closeZoom
();
});
$
(
'
.zoom-image
'
).
on
(
'
click
'
,
function
(
ev
)
{
var
e
=
ev
||
window
.
event
;
$
(
'
.zoom-image
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
isZoom
=
true
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录