Skip to content

Commit

Permalink
1. Disable pangu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouch1978 committed Aug 24, 2024
1 parent ebace69 commit aa40070
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
22 changes: 11 additions & 11 deletions src/components/LatestPosts/latest-docs.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[
{
"title": "從 GitHub 公開 Repository 中引用範例程式碼的方法",
"permalink": "/docs/docusaurus/customization/add-github-codeblock/",
"description": "介紹如何在 Docusaurus 中引用 GitHub 公開 Repository 裡的範例程式碼",
"title": "在文件庫和部落格的文章下方加上 giscus 留言區",
"permalink": "/docs/docusaurus/customization/add-giscus-to-docusaurus/",
"description": "介紹在 Docusaurus 的文章中加入 giscus 留言區的方法",
"tags": [
{
"inline": true,
"label": "Docusaurus",
"permalink": "/docs/tags/docusaurus"
}
],
"date": 1713024000000,
"yearMonth": "2024 年 04",
"day": "14"
"date": 1724428800000,
"yearMonth": "2024 年 08",
"day": "24"
},
{
"title": "在文件庫和部落格的文章下方加上 giscus 留言區",
"permalink": "/docs/docusaurus/customization/add-giscus-to-docusaurus/",
"description": "介紹在 Docusaurus 的文章中加入 giscus 留言區的方法",
"title": "從 GitHub 公開 Repository 中引用範例程式碼的方法",
"permalink": "/docs/docusaurus/customization/add-github-codeblock/",
"description": "介紹如何在 Docusaurus 中引用 GitHub 公開 Repository 裡的範例程式碼",
"tags": [
{
"inline": true,
"label": "Docusaurus",
"permalink": "/docs/tags/docusaurus"
}
],
"date": 1702483200000,
"yearMonth": "202312",
"date": 1713024000000,
"yearMonth": "202404",
"day": "14"
},
{
Expand Down
10 changes: 7 additions & 3 deletions static/assets/enablePangu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@



document.addEventListener("DOMContentLoaded", () => {
// listen to any DOM change and automatically perform spacing via MutationObserver()
//pangu.autoSpacingPage();
pangu.spacingElementByTagName('article');
pangu.spacingElementByTagName('nav');
pangu.spacingElementByClassName('table-of-contents');

//pangu.spacingElementByTagName('article');
//pangu.spacingElementByTagName('nav');
//pangu.spacingElementByClassName('table-of-contents');
});

0 comments on commit aa40070

Please sign in to comment.