You've already forked hexo-theme-icarus
fix(view): fix pjax support for comment plugins
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = class extends Component {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <div class="card">
|
||||
return <div class="card" id="comments">
|
||||
<div class="card-content">
|
||||
<h3 class="title is-5">{__('article.comments')}</h3>
|
||||
{(() => {
|
||||
|
||||
@@ -7,14 +7,16 @@
|
||||
const Pjax = window.Pjax || function() {};
|
||||
pjax = new Pjax({
|
||||
selectors: [
|
||||
'[data-pjax]',
|
||||
'head title',
|
||||
'.columns',
|
||||
'.navbar-start',
|
||||
'.navbar-end',
|
||||
'.searchbox',
|
||||
'.pjax-reload',
|
||||
'#back-to-top',
|
||||
'[data-pjax]',
|
||||
'.pjax-reload'
|
||||
'#comments link',
|
||||
'#comments script',
|
||||
]
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user