@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 5.5.27
4
+
5
+ ### Patch Changes
6
+
7
+ - 1da1967: fix cls
8
+
9
+ ## 5.5.26
10
+
11
+ ### Patch Changes
12
+
13
+ - 368b207: fix npe
14
+
3
15
  ## 5.5.25
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.5.25",
3
+ "version": "5.5.27",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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
- document.documentElement.classList.add(LOADING_CLASS);
66
+ console.log('Initializing font loading listener');
67
+ document.body.classList.add(LOADING_CLASS);
67
68
  document.fonts.ready.then(() => {
68
- document.documentElement.classList.remove(LOADING_CLASS);
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(