diff --git a/themes/Ying/assets/js/mypjax.js b/themes/Ying/assets/js/mypjax.js index 868407d3..b77691f0 100644 --- a/themes/Ying/assets/js/mypjax.js +++ b/themes/Ying/assets/js/mypjax.js @@ -183,7 +183,7 @@ document.addEventListener("pjax:complete", function () { site: '优世界', // 你的站点名 // 使用全局变量或 DOM 读取 pageKey // 必须动态获取当前页面的 pid (RelPermalink) - pageKey: document.getElementById('data-pid')?.innerText || location.pathname, + pageKey: document.getElementById('data-pid')?.textContent?.trim() || location.pathname, flatMode: true, emoticons: '/emotion/OwO.json' }) diff --git a/themes/Ying/layouts/_default/single.html b/themes/Ying/layouts/_default/single.html index 62d5b51b..1a6d6a5a 100644 --- a/themes/Ying/layouts/_default/single.html +++ b/themes/Ying/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }}
- +

{{ .Title }}