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

fix: Solve the problem of quicklink error

上级 67b095bf
......@@ -10,13 +10,13 @@ if theme.quicklink.enable
- loadQuicklink = true;
if theme.pjax.enable
- loadQuicklink = true;
if loadQuicklink || (page.quicklink || post.quicklink)
if loadQuicklink || ((page && page.quicklink) || (post && post.quicklink))
script(src=quicklink_js)
script.
function initQuicklink() {
quicklink({
timeout: '!{ theme.quicklink.timeout }',
priority: '!{ theme.quicklink.priority }',
priority: !{ theme.quicklink.priority },
ignores: [uri => uri.includes('#'), uri => uri === '!{ url.replace("index.html", '') }', !{ theme.quicklink.ignores }]
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册