提交 40533038 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: The post link can be clicked in post page

上级 ce9ce4f1
...@@ -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-title else
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")
......
...@@ -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
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册