anime
ea1b76f5b7
fix(getPageContentText): add null check for postContent before accessing length property
...
Ensure postContent exists before checking its length property to prevent
potential runtime errors when postContent is null or undefined.
2025-07-09 16:22:38 +08:00
anime
9886e4d146
feat(getPageContentText): add references to NotionX types and comment out debug log
...
- Add reference links to NotionX type definitions for better documentation
- Comment out debug console.log statement to clean up output
- Maintain existing functionality while improving code clarity
2025-07-09 16:12:12 +08:00
anime
f9ac624498
feat(getPageContentText): implement getFullTextContent for enhanced text extraction
...
- Add new getFullTextContent function to handle various Notion text formats
- Support equation extraction from decorated text
- Handle special characters like '⁍' and '‣' with proper content resolution
- Process date mentions, link mentions, and other reference types
- Replace getTextContent with getFullTextContent in getTextArray function
- Maintain backward compatibility with existing text processing
2025-07-09 16:00:15 +08:00
anime
23550a61d3
feat(getPageContentText): add flexible property value retrieval and support for more block types
...
- Add getPropertyValue helper function for flexible property retrieval
- Enhance getText function to accept custom keys for property lookup
- Add support for additional block types: image, bookmark, callout, header
- Improve documentation with JSDoc comments for better code understanding
2025-07-09 15:19:47 +08:00
anime
9321b2dfae
feat(getPageContentText): update getPageContentText to use post.content array
...
- modify content extraction logic to use post.content array
- avoid extra but wrong result by checking pageBlockMap.block
2025-07-09 14:39:47 +08:00
anime
3ad7605abe
fix: prevent processing content for page type blocks
...
- Skip content processing when block type is 'page'
- Update debug log message for content text concatenation
2025-07-09 14:09:37 +08:00
anime
2a0f4fd49c
feat(getPageContentText): ensure proper spacing in concatenated text content
...
Modify getPageContentText.js to use space delimiter when joining text
blocks instead of empty string. This change affects three functions:
getPageContentText, getTextArray, and getBlockContentText to improve
text readability and proper spacing between concatenated content blocks.
2025-07-09 13:58:48 +08:00
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
anime
722aa2dafa
feat(getPageContentText): refactor content text extraction logic
...
- add special case handling for various block types
- maintain same functionality while improving structure
Close #2151
2025-07-08 00:32:03 +08:00
tangly1024
5e6fa26c90
Merge pull request #3476 from tangly1024/release/4.8.6
...
V4.8.6
2025-07-07 16:09:34 +08:00
tangly1024
2d2a00917d
V4.8.6
2025-07-07 16:06:50 +08:00
tangly1024
a5ca0c3079
Merge pull request #3461 from yakiisama/main
...
增加主题 typography
2025-07-07 16:00:21 +08:00
tangly1024
57bc81700f
typography主題微調
2025-07-07 15:57:54 +08:00
tangly1024
57c800a091
Merge pull request #3471 from qixing-jk/feat/not-by-ai
...
feat(ArticleCopyright): initially implement the "not by AI" function
2025-07-07 15:14:19 +08:00
tangly1024
b252cefc21
Merge pull request #3472 from qixing-jk/feat/expiry-reminder
...
feat(ArticleExpirationNotice): implement ArticleExpirationNotice comp…
2025-07-07 15:11:53 +08:00
tangly1024
c439810fa2
Update post.config.js
2025-07-07 15:11:16 +08:00
tangly1024
78e8cbf7fe
Merge pull request #3473 from qixing-jk/fix/proxio-image-click-issue
...
fix(proxio): enable image click navigation in list view
2025-07-07 15:09:48 +08:00
tangly1024
4fa93f4291
Merge pull request #3475 from qixing-jk/fix/algolia/search-overflow-selection
...
fix(algoliasearch样式溢出问题):
2025-07-07 15:06:39 +08:00
tangly1024
eb89e98828
Merge pull request #3474 from qixing-jk/feat/aisummary/prevent-error-exposure
...
feat(aisummary): Return null when AI summary retrieval fails to preve…
2025-07-07 15:06:00 +08:00
anime
b2523c25b1
fix(algoliasearch样式溢出问题):
...
(cherry picked from commit cc43cc300385534a0015c3e45f7a32649f40430f)
Fix #2340
2025-07-07 14:44:51 +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
anime
aef0768391
fix(proxio): enable image click navigation in list view
...
Closes #3468
2025-07-07 01:33:44 +08:00
anime
c02a94c923
feat(config): add article expiration reminder configuration
...
- Added ARTICLE_EXPIRATION_DAYS to configure expiration threshold
- Added ARTICLE_EXPIRATION_MESSAGE to set custom expiration message
- Added ARTICLE_EXPIRATION_ENABLED to control whether enable this feature
2025-07-07 00:55:11 +08:00
anime
7e79987795
feat(ArticleExpirationNotice): implement ArticleExpirationNotice component
...
- Add ArticleExpirationNotice component to the page layout in Heo theme
resolve #2738
2025-07-07 00:55:10 +08:00
anime
13d02176a4
feat(NotByAI): add commerce theme configuration options to maintain consistency with other themes
2025-07-06 03:43:35 +08:00
anime
8fd2f70d7b
feat(NotByAI): make NotByAI component configurable via site config
...
- Add conditional rendering for NotByAI component in all themes
- Default all new config options to false
Closes #3351
2025-07-06 03:43:35 +08:00
anime
c072bec8b8
feat(ArticleCopyright): implement the "not by AI" function, completely support multi-languages icons
2025-07-06 03:43:35 +08:00
anime
fc1e644130
feat(ArticleCopyright): initially implement the "not by AI" function
2025-07-06 02:51:21 +08:00
Blackberry009
b72e8e91cb
reverse format
2025-06-30 16:26:26 +08:00
Blackberry009
7e018c1ad4
archive
2025-06-30 15:21:53 +08:00
Blackberry009
b907030f32
css
2025-06-30 13:58:56 +08:00
Blackberry009
120593f329
fix: px
2025-06-18 14:28:58 +08:00
Blackberry009
e46d8d9d30
优化部份css
2025-06-18 11:40:02 +08:00
Blackberry009
a54649a412
cancel slottop
2025-06-18 11:31:14 +08:00
Blackberry009
2142dbd509
cancel slottop
2025-06-18 11:24:58 +08:00
Blackberry009
b2714fa4a5
更改字段
2025-06-18 11:17:33 +08:00
yakiisama
088ae612be
Merge branch 'tangly1024:main' into main
2025-06-17 11:27:22 +08:00
tangly1024
40b206b39b
Merge pull request #3446 from tangly1024/feat/notion-database-index
...
Notion数据库支持配置视图索引
2025-06-17 10:58:02 +08:00
tangly1024
04ffbbb7ef
Notion数据库支持配置视图索引
2025-06-17 10:55:56 +08:00
tangly1024
243e8a41f1
Merge pull request #3440 from LooseLi/fix-hexoThemeColor
...
fix: hexo主题中,移动端菜单适配主题色失效
2025-06-15 20:34:23 +08:00
Blackberry009
c8c7769e9a
黑暗模式
2025-06-13 18:23:27 +08:00
Blackberry009
d8db32d71a
优化css
2025-06-13 16:56:24 +08:00
LooseLi
e6ad729110
fix: 移动端菜单适配主题色失效
2025-06-13 15:28:48 +08:00
Blackberry009
a8192e0179
feat: 优化css
2025-06-09 17:46:08 +08:00
BlackBerry009
f7ceb2f9ec
feat: new theme
2025-06-08 00:50:22 +08:00