Skip to content

Commit 1df641d

Browse files
committed
fix: 仅在非首页页面加载页面标题后缀
1 parent 95e072d commit 1df641d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.html

+7-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@
4949
recordIP: true,
5050
docPath: 'full',
5151
},
52-
customPageTitle: {
53-
suffix: 'Codemao API - 编程猫社区API文档',
54-
},
5552
};
53+
54+
// 仅在非首页页面加载页面标题后缀
55+
if (location.pathname != '/') {
56+
window.$docsify.customPageTitle = {
57+
suffix: 'Codemao API - 编程猫社区API文档',
58+
};
59+
}
5660
</script>
5761
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
5862
<script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>

0 commit comments

Comments
 (0)