Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
f60620be
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 搜索 >>
提交
f60620be
编写于
6月 18, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: Change the way of scripts are included
上级
477e5809
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
5 deletion
+19
-5
_config.yml
_config.yml
+9
-2
layout/_common/layout.pug
layout/_common/layout.pug
+5
-3
layout/_scripts/common.pug
layout/_scripts/common.pug
+4
-0
layout/_scripts/post.pug
layout/_scripts/post.pug
+1
-0
未找到文件。
_config.yml
浏览文件 @
f60620be
...
...
@@ -70,6 +70,7 @@ footer:
copyright
:
enable
:
true
# If not set, will be used `author` from Hexo main config.
# (e.g. liuyib. All Rights Reserved.)
text
:
# Specify the date when the site was setup.
# If not set, the current year will be used.
...
...
@@ -123,6 +124,7 @@ menu:
about
:
/about/ || user
# reading: /reading/ || book
# sitemap: /sitemap.xml || sitemap
# You can also add a item by yourself.
# xxx: /xxx/ || xxx
menu_settings
:
...
...
@@ -179,6 +181,8 @@ social:
wechat
:
yournumber || weixin
telegram
:
yournumber || telegram
qq
:
yournumber || qq
# You can also add a link by yourself.
# xxx: xxx || (origin:)xxx
social_setting
:
# Only show social links by an icon.
...
...
@@ -206,7 +210,8 @@ feed:
enable
:
false
# Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
email
:
# rss:
# Enter the rss address of you set (e.g. /atom.xml)
rss
:
# The reading progress of post.
reading_progress
:
...
...
@@ -236,6 +241,7 @@ post_meta:
# Count the reading time of the post.
# Don't enable this before install dependencies
# by `npm install hexo-wordcount --save` in hexo directory.
# and you must restart your hexo server.
reading_time
:
enable
:
false
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
...
...
@@ -249,6 +255,7 @@ post_meta:
# Count the words of the post.
# Don't enable this before install dependencies
# by `npm install hexo-wordcount --save` in hexo directory.
# and you must restart your hexo server.
word_count
:
enable
:
false
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
...
...
@@ -304,7 +311,7 @@ reward:
# Gitment
# See: https://github.com/imsun/gitment
gitment
:
enable
:
tru
e
enable
:
fals
e
# Github username.
owner
:
# Github repository.
...
...
layout/_common/layout.pug
浏览文件 @
f60620be
...
...
@@ -16,8 +16,10 @@ html(lang=config.language)
if url
script(src=url_for(url))
if theme.scripts && theme.scripts.length > 0
each url in theme.scripts
script(src=url_for(url) + "?v=" + stun_env("version"))
include ../_scripts/common.pug
if is_post()
include ../_scripts/post.pug
//- Third party resource file
include ../_third-party/comments/index.pug
layout/_scripts/common.pug
0 → 100644
浏览文件 @
f60620be
script(src=`${url_for(theme.js)}/utils.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/scroll.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/header.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/sidebar.js?v=${stun_env("version")}`)
layout/_scripts/post.pug
0 → 100644
浏览文件 @
f60620be
script(src=`${url_for(theme.js)}/post.js?v=${stun_env("version")}`)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录