diff --git a/layout/_layout.njk b/layout/_layout.njk index 0b03592..78ae5cd 100644 --- a/layout/_layout.njk +++ b/layout/_layout.njk @@ -45,7 +45,7 @@ {{ partial('_third-party/index.njk', {}, {cache: theme.cache.enable}) }} {%- if theme.pjax %} -
+
{%- endif %} {% include '_third-party/math/index.njk' %} {% include '_third-party/quicklink.njk' %} diff --git a/layout/_partials/head/head-unique.njk b/layout/_partials/head/head-unique.njk index 16e4179..7aa8308 100644 --- a/layout/_partials/head/head-unique.njk +++ b/layout/_partials/head/head-unique.njk @@ -3,7 +3,7 @@ {{ canonical() }} {# Exports some front-matter variables to Front-End #} - + // https://hexo.io/docs/variables.html CONFIG.page = { sidebar: {{ page.sidebar | safedump }}, diff --git a/layout/_scripts/pjax.njk b/layout/_scripts/pjax.njk index 0ac4d78..be26c1f 100644 --- a/layout/_scripts/pjax.njk +++ b/layout/_scripts/pjax.njk @@ -2,11 +2,11 @@ var pjax = new Pjax({ selectors: [ 'head title', - '#page-configurations', + '.page-configurations', '.main-inner', '.post-toc-wrap', '.languages', - '#pjax' + '.pjax' ], analytics: false, cacheBust: false, @@ -14,7 +14,7 @@ var pjax = new Pjax({ }); document.addEventListener('pjax:success', () => { - pjax.executeScripts(document.querySelectorAll('script[data-pjax], #pjax script')); + pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script')); NexT.boot.refresh(); // Define Motion Sequence & Bootstrap Motion. if (CONFIG.motion.enable) { diff --git a/scripts/helpers/next-config.js b/scripts/helpers/next-config.js index bfeb46c..a4596c2 100644 --- a/scripts/helpers/next-config.js +++ b/scripts/helpers/next-config.js @@ -38,7 +38,7 @@ hexo.extend.helper.register('next_config', function() { if (config.search) { exportConfig.path = config.search.path; } - return ``;