Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
40533038
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 搜索 >>
提交
40533038
编写于
9月 16, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: The post link can be clicked in post page
上级
ce9ce4f1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
7 deletion
+8
-7
layout/_mixins/post-header.pug
layout/_mixins/post-header.pug
+6
-6
layout/_partials/widgets/comments.pug
layout/_partials/widgets/comments.pug
+1
-0
layout/_third-party/comments/valine.pug
layout/_third-party/comments/valine.pug
+1
-1
未找到文件。
layout/_mixins/post-header.pug
浏览文件 @
40533038
...
@@ -5,12 +5,12 @@ mixin postHeader(post)
...
@@ -5,12 +5,12 @@ mixin postHeader(post)
if post.top
if post.top
include ../_partials/widgets/sticky-top.pug
include ../_partials/widgets/sticky-top.pug
if is_post()
h1.post-header-title
h1.post-header-title= post.title || __("post.untitled")
if post.link
else
a(href=url_for(post.link) target="_blank" rel="noopener" ).post-header-title__a= post.title || post.link
h1.post-header-titl
e
els
e
if
post.link
if
is_post()
a(href=url_for(post.link) target="_blank" rel="noopener" ).post-header-title__a= post.title || post.link
= post.title || __("post.untitled")
else
else
a(href=url_for(post.path)).post-header-title__a= post.title || __("post.untitled")
a(href=url_for(post.path)).post-header-title__a= post.title || __("post.untitled")
...
...
layout/_partials/widgets/comments.pug
浏览文件 @
40533038
...
@@ -3,6 +3,7 @@ if theme.disqus && theme.disqus.enable
...
@@ -3,6 +3,7 @@ if theme.disqus && theme.disqus.enable
div#disqus_thread
div#disqus_thread
else if theme.valine && theme.valine.enable
else if theme.valine && theme.valine.enable
div#comments.comments
div#comments.comments
div#valine-container
else if theme.gitalk && theme.gitalk.enable
else if theme.gitalk && theme.gitalk.enable
div#comments.comments
div#comments.comments
div#gitalk-container
div#gitalk-container
...
...
layout/_third-party/comments/valine.pug
浏览文件 @
40533038
...
@@ -23,7 +23,7 @@ script&attributes(dataPjax).
...
@@ -23,7 +23,7 @@ script&attributes(dataPjax).
});
});
new Valine({
new Valine({
el: '#
comments
',
el: '#
valine-container
',
appId: '!{ theme.valine.appid }',
appId: '!{ theme.valine.appid }',
appKey: '!{ theme.valine.appkey }',
appKey: '!{ theme.valine.appkey }',
notify: !{ theme.valine.notify },
notify: !{ theme.valine.notify },
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录