Commit Graph

702 Commits

Author SHA1 Message Date
anime
72d64d7184 feat(getPageContentText): enhance getPageContentText to handle nested block content
- refactor getText function to process block properties and content
- add support for recursive processing of nested block content
- improve null checks and error handling in block processing
- update getBlockContentText to handle block value safely
2025-07-09 13:51:43 +08:00
anime
44ff4bcb23 feat(getPageContentText): remove debug console.log from getPageContentText
Commented out console.log statement in getPageContentText.js
to remove debug output while maintaining the functionality.
2025-07-09 13:15:49 +08:00
anime
b52f818154 feat(getPageContentText): replace custom text extraction with notion-utils
The getTextContent function was removed and replaced with an import from
notion-utils, simplifying the text extraction logic for Notion page
content. This change removes the custom recursive implementation and
uses the standardized utility function instead.
2025-07-09 13:15:43 +08:00
anime
d22e8bb177 feat(getPageContentText): add null checks for block references
- Add validation for transclusion reference pointer existence
- Return empty string when block is not found
- Prevent potential errors from undefined block references
2025-07-08 15:50:54 +08:00
anime
2a89027bb6 chore(getPageContentText): add todo comments for future improvements
- Add todo comment for cleaning up more useless tags
- Add todo comment for handling more block types
2025-07-08 00:32:16 +08:00
anime
b4ba7d8f23 refactor(getPageContentText): Relocate getPageContentText to a dedicated file and eliminate the redundant isIterable function. 2025-07-08 00:32:04 +08:00
tangly1024
a5ca0c3079 Merge pull request #3461 from yakiisama/main
增加主题 typography
2025-07-07 16:00:21 +08:00
anime
684872fb2f feat(aisummary): Return null when AI summary retrieval fails to prevent exposing issues to users 2025-07-07 01:50:36 +08:00
Blackberry009
b72e8e91cb reverse format 2025-06-30 16:26:26 +08:00
Blackberry009
b2714fa4a5 更改字段 2025-06-18 11:17:33 +08:00
tangly1024
04ffbbb7ef Notion数据库支持配置视图索引 2025-06-17 10:55:56 +08:00
tangly1024
c26d58a27c fix 小问题 2025-06-05 13:13:08 +08:00
tangly1024
f2fdda53c6 Merge pull request #3419 from LooseLi/fix-eslint-errors
Fix eslint errors
2025-06-05 12:43:48 +08:00
Jinli
c309ac5c6d fix: retrieve index 2025-05-29 14:28:42 +08:00
LooseLi
1cb339b47c fix: 修复 eslint 报错 2025-05-27 11:20:50 +08:00
LooseLi
e631507ce2 fix: 修复 eslint 报错 2025-05-27 10:52:32 +08:00
LooseLi
d9bbf58aa6 fix: 修复 TypeScript 类型错误 2025-05-27 10:11:59 +08:00
LooseLi
84236f3cff fix: 修复 eslint 报错 2025-05-27 10:06:47 +08:00
LooseLi
1f691818f8 fix: 修复 eslint 报错 2025-05-26 16:55:44 +08:00
LooseLi
13235b6cdb fix: 修复 eslint 报错 2025-05-26 16:51:31 +08:00
LooseLi
91493bda00 fix: 兼容旧的 AWS 链接格式以确保旧文件正常加载 2025-04-16 09:46:29 +08:00
LooseLi
a67e9086a0 fix:仅对 attachment 开头的上传文件签名,跳过 embed 链接 2025-04-15 10:47:49 +08:00
tangly1024
85ca8b1da7 修復无标签编译出错 2025-04-12 08:58:52 +08:00
tangly1024
7dbbcdd435 Merge pull request #3325 from qixing-jk/fix/invisible-tag
fix(修复隐藏文章中无法显示只存在于隐藏文章中的标签的问题):
2025-04-11 22:38:52 +08:00
tangly1024
c5c88a05f0 Merge pull request #3326 from tangly1024/fix/iconfont
Fix/iconfont
2025-04-11 22:37:48 +08:00
tangly1024
d94cc3308a Merge branch 'main' into fix/hexo_404 2025-04-11 22:34:59 +08:00
anime
4ee9656c8a fix(修复隐藏文章中无法显示只存在于隐藏文章中的标签的问题):
具体问题为:对于新打的标签,无法在隐藏文章里显示,只能显示之前添加好的旧标签。而将文章设置为公开,就能全部显示。

Closes #3322 #3038 #3137
2025-04-11 21:10:27 +08:00
tangly1024
f16b7b7b1e Merge branch 'main' into pr/noeFly/3223 2025-04-11 18:18:17 +08:00
tangly1024
99ba183f56 fix lang 2025-04-11 18:14:49 +08:00
tangly1024
3f8fbf3d6e Merge pull request #3287 from LooseLi/dev
修复sitemap多个斜杠导致无法自动编入索引#3260;修复自定义备案链接不生效#3267 #3244
2025-04-11 17:59:57 +08:00
tangly1024
ef65558fb6 Merge pull request #3310 from LooseLi/post-sort-by
fix(文章排序)
2025-04-11 17:54:19 +08:00
tangly1024
d9e215bd0f Merge pull request #3317 from LooseLi/fix-fileUrl
fix: enable all Notion file types to work properly
2025-04-11 17:53:36 +08:00
tangly1024
33ed18d3f5 gtag fix 2025-04-11 17:41:16 +08:00
LooseLi
86a1eddb92 fix: enable all Notion file types to work properly 2025-04-07 15:49:27 +08:00
LooseLi
8e0dd0b974 fix(文章排序) 2025-03-31 11:01:55 +08:00
LooseLi
86b59b6cfc fix(sitemap多了个斜杠导致Google Search Console无法自动编入索引) 2025-03-20 11:50:12 +08:00
tangly1024
61bdfef701 Merge pull request #3233 from YesYouKenSpace/feat/localization-404
feat(localization): introduce localization to 404 texts
2025-03-14 16:55:03 +08:00
tangly1024.com
8688278e02 gallery视图自动替换url 2025-03-04 13:54:46 +08:00
noeFly
76aa385be7 Merge branch 'main' into fix/local 2025-02-23 18:59:36 +08:00
noeFly
0031a4665a Merge branch 'main' into fix/hexo_404 2025-02-23 18:59:06 +08:00
Kenneth
22446ecc83 Merge branch 'main' into feat/localization-404 2025-02-18 17:10:44 +08:00
Kenneth
134afd7b8e feat(localization): introduce localization to 404 texts 2025-02-18 17:00:05 +08:00
tangly1024.com
faf58eff06 Merge branch 'main' of https://github.com/tangly1024/NotionNext 2025-02-14 18:21:25 +08:00
tangly1024.com
bc351a3b11 G-Tag fix 2025-02-14 18:21:17 +08:00
noeFly
861b8a92e0 refactor: 🚨 Prettier 自動格式化 2025-02-12 21:30:47 +08:00
noeFly
8df49a195d fix: 🐛 修復 i18n 無法套用語言變體
修復 i18n 無法正確使用語言變體,轉而使用最靠近的語系翻譯
2025-02-12 21:29:18 +08:00
noeFly
e161823a31 fix: 🐛 修復 Hexo 主題下 404 頁面無法在地化
#3157
2025-02-11 22:55:19 +08:00
tangly1024
1c2ba4942f Merge pull request #3207 from rickyltwong/fix/zh-HK-localization
Improved zh-HK translations
2025-02-11 15:36:48 +08:00
noeFly
1966ce341a feat: add missing translation strings
將缺少的翻譯字串補上
2025-02-10 15:59:18 +08:00
Ricky LT Wong
3eac043a26 Improved zh-HK translations 2025-02-07 17:31:36 -05:00