Skip to content

Commit

Permalink
Fix theme-next enable pjax cannot load script (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
val3344 authored Jan 23, 2021
1 parent b7be1a0 commit be7dbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ hexo.extend.filter.register('after_post_render', (data) => {
.replace(/{{hbeWrongPassMessage}}/g, config.wrong_pass_message)
.replace(/{{hbeWrongHashMessage}}/g, config.wrong_hash_message)
.replace(/{{hbeMessage}}/g, config.message);
data.content += `<script src="${hexo.config.root}lib/hbe.js"></script><link href="${hexo.config.root}css/hbe.style.css" rel="stylesheet" type="text/css">`;
data.content += `<script data-pjax src="${hexo.config.root}lib/hbe.js"></script><link href="${hexo.config.root}css/hbe.style.css" rel="stylesheet" type="text/css">`;
data.excerpt = data.more = config.abstract;

return data;
Expand Down

0 comments on commit be7dbf9

Please sign in to comment.