Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
bffd2b5e
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 搜索 >>
提交
bffd2b5e
编写于
9月 16, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style: Format js in pug
上级
57ef4c31
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
41 addition
and
22 deletion
+41
-22
layout/_partials/footer/footer.pug
layout/_partials/footer/footer.pug
+5
-5
layout/_partials/widgets/copyright.pug
layout/_partials/widgets/copyright.pug
+4
-4
layout/_third-party/comments/gitalk.pug
layout/_third-party/comments/gitalk.pug
+9
-4
layout/_third-party/comments/valine.pug
layout/_third-party/comments/valine.pug
+9
-4
layout/_third-party/pjax.pug
layout/_third-party/pjax.pug
+3
-0
layout/_third-party/quicklink.pug
layout/_third-party/quicklink.pug
+6
-3
layout/_third-party/search/algolia.pug
layout/_third-party/search/algolia.pug
+5
-2
未找到文件。
layout/_partials/footer/footer.pug
浏览文件 @
bffd2b5e
-
var footer = theme.footer
var nowYear = new Date().getFullYear()
var startYear = copyright ? footer.copyright.since || nowYear : nowYear
var endYear = copyright ? footer.copyright.end || nowYear : nowYear
var fa_prefix = theme.fa_prefix || 'fa'
var footer = theme.footer
;
var nowYear = new Date().getFullYear()
;
var startYear = copyright ? footer.copyright.since || nowYear : nowYear
;
var endYear = copyright ? footer.copyright.end || nowYear : nowYear
;
var fa_prefix = theme.fa_prefix || 'fa'
;
- var footerCopyright = footer.copyright.enable
- var footerBeian = footer.beian.enable
...
...
layout/_partials/widgets/copyright.pug
浏览文件 @
bffd2b5e
-
var themeCC = theme.creative_commons
var ccLicense = themeCC.license && themeCC.license.toLowerCase()
var ccLanguage = (themeCC.language && themeCC.language.toLowerCase()) || "en"
var ccURL = `https://creativecommons.org/licenses/${ccLicense}/4.0/deed.${ccLanguage}`
var themeCC = theme.creative_commons
;
var ccLicense = themeCC.license && themeCC.license.toLowerCase()
;
var ccLanguage = (themeCC.language && themeCC.language.toLowerCase()) || "en"
;
var ccURL = `https://creativecommons.org/licenses/${ccLicense}/4.0/deed.${ccLanguage}`
;
div.post-copyright
div.post-copyright-author
...
...
layout/_third-party/comments/gitalk.pug
浏览文件 @
bffd2b5e
-
var gitalk_js = "https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js"
var gitalk_md5 = "https://cdn.jsdelivr.net/npm/js-md5@latest/src/md5.min.js"
var gitalk_js = "https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js"
;
var gitalk_md5 = "https://cdn.jsdelivr.net/npm/js-md5@latest/src/md5.min.js"
;
if (theme.cdn.gitalk_js) gitalk_js = theme.cdn.gitalk_js
if (theme.cdn.gitalk_md5) gitalk_md5 = theme.cdn.gitalk_md5
if (theme.cdn.gitalk_js) {
gitalk_js = theme.cdn.gitalk_js;
}
if (theme.cdn.gitalk_md5) {
gitalk_md5 = theme.cdn.gitalk_md5;
}
script(src=gitalk_js)&attributes(dataPjax)
script(src=gitalk_md5)&attributes(dataPjax)
...
...
layout/_third-party/comments/valine.pug
浏览文件 @
bffd2b5e
-
var leancloud_storage_js = "https://cdn.jsdelivr.net/npm/leancloud-storage@latest/dist/av-min.js"
var valine_js = "https://cdn.jsdelivr.net/npm/valine@latest/dist/Valine.min.js"
var leancloud_storage_js = "https://cdn.jsdelivr.net/npm/leancloud-storage@latest/dist/av-min.js"
;
var valine_js = "https://cdn.jsdelivr.net/npm/valine@latest/dist/Valine.min.js"
;
if (theme.cdn.leancloud_storage) leancloud_storage_js = theme.cdn.leancloud_storage
if (theme.cdn.valine) valine_js = theme.cdn.valine
if (theme.cdn.leancloud_storage) {
leancloud_storage_js = theme.cdn.leancloud_storage;
}
if (theme.cdn.valine) {
valine_js = theme.cdn.valine;
}
script(src=leancloud_storage_js)
script(src=valine_js)
...
...
layout/_third-party/pjax.pug
浏览文件 @
bffd2b5e
...
...
@@ -23,12 +23,15 @@
if (theme.pjax.elements) {
pjaxArgs.elements.push(theme.pjax.elements);
}
if (theme.pjax.selectors) {
pjaxArgs.selectors.push(theme.pjax.selectors);
}
if (theme.pjax.selectors) {
pjaxArgs.switches = theme.pjax.selectors;
}
if (theme.pjax.selectors) {
pjaxArgs.switchesOptions = theme.pjax.selectors;
}
...
...
layout/_third-party/quicklink.pug
浏览文件 @
bffd2b5e
if theme.quicklink.enable
-
var quicklink_js = "https://cdn.jsdelivr.net/npm/quicklink@1.0.1/dist/quicklink.umd.js"
if (theme.cdn.quicklink) quicklink_js = theme.cdn.quicklink
var loadQuicklink = false
var loadQuicklink = false;
var quicklink_js = "https://cdn.jsdelivr.net/npm/quicklink@1.0.1/dist/quicklink.umd.js";
if (theme.cdn.quicklink) {
quicklink_js = theme.cdn.quicklink;
}
if is_home() && theme.quicklink.home
- loadQuicklink = true
...
...
layout/_third-party/search/algolia.pug
浏览文件 @
bffd2b5e
-
var instantsearch_js = "https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.js"
if (theme.cdn.instantsearch_js) instantsearch_js = theme.cdn.instantsearch_js
var instantsearch_js = "https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.js";
if (theme.cdn.instantsearch_js) {
instantsearch_js = theme.cdn.instantsearch_js;
}
script(src=instantsearch_js defer)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录