@bbki.ng/site 5.5.25 → 5.5.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/plugins/xwy/index.ts +4 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/plugins/xwy/index.ts
CHANGED
|
@@ -63,13 +63,14 @@ class XwyPlugin implements IPlugin {
|
|
|
63
63
|
|
|
64
64
|
private initFontLoadingListener() {
|
|
65
65
|
// listen font loading status and add class to body for styling
|
|
66
|
-
|
|
66
|
+
console.log('Initializing font loading listener');
|
|
67
|
+
document.body.classList.add(LOADING_CLASS);
|
|
67
68
|
document.fonts.ready.then(() => {
|
|
68
|
-
document.
|
|
69
|
+
document.body.classList.remove(LOADING_CLASS);
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
private transformPostContent = (content: string) => {
|
|
73
|
+
private transformPostContent = (content: string = '') => {
|
|
73
74
|
// 在文章内容中替换特定关键词为特殊样式
|
|
74
75
|
return content
|
|
75
76
|
.replace(
|