Commit Graph

4489 Commits

Author SHA1 Message Date
tangly1024
e56ec32f20 Merge branch 'main' into feat/post/extract-page-content 2025-07-27 21:23:37 +08:00
tangly1024
10ee8683e3 Merge pull request #3482 from qixing-jk/feat/algolia/delete-post
feat(algolia): add data deletion functionality and execute in index.js
2025-07-27 21:21:27 +08:00
tangly1024
9093c7bc03 Merge branch 'main' into feat/algolia/delete-post 2025-07-27 21:20:28 +08:00
tangly1024
de7383155a Merge pull request #3486 from qixing-jk/feat/improve-link-detection
feat: enhance mailto/tel link handling and streamline imports
2025-07-27 21:20:00 +08:00
tangly1024
6c80ecb5b6 Merge branch 'main' into feat/improve-link-detection 2025-07-27 21:18:49 +08:00
tangly1024
5427b9b013 Merge pull request #3515 from qixing-jk/fix/gitbook-logo-ratio
fix: correct logo ratio in Gitbook theme
2025-07-27 21:16:49 +08:00
tangly1024
e87323edc7 Merge branch 'main' into fix/gitbook-logo-ratio 2025-07-27 21:16:40 +08:00
tangly1024
5a6e2cadee Merge pull request #3517 from qixing-jk/feat/smartlink
feat: add SmartLink component for internal and external links
2025-07-27 21:15:59 +08:00
tangly1024
9bcb4bb6d4 Merge branch 'main' into feat/smartlink 2025-07-27 21:10:30 +08:00
tangly1024
3ccb7c9d69 Merge pull request #3520 from RedhairHambagu/fix/Aplayer-url-404
fix: APlayer url update
2025-07-27 21:04:13 +08:00
tangly1024
2ab7084e89 Merge branch 'main' into fix/Aplayer-url-404 2025-07-27 21:03:59 +08:00
tlyong1992
e96b7d2b20 修复图片异常导致站点崩溃的bug 2025-07-27 21:01:43 +08:00
Redhair Hambagu
4fca5cec74 fix: APlayer url update 2025-07-27 10:14:55 +00:00
anime
57d6a1779d feat: enhance SmartLink component for better external link handling
- support object format of href
- improve URL string extraction logic
- add proper type checking for href prop
- ensure external links use string format
2025-07-24 17:05:38 +08:00
anime
7f43846e33 feat: add DOM props filtering for SmartLink component
- Introduce filterDOMProps utility to exclude Next.js specific props
- Apply filtering to external links to ensure clean DOM attributes
- Maintain consistent prop passing for internal Next.js links
2025-07-24 16:43:21 +08:00
anime
ba951cd2aa feat: change all Link component to SmartLink
Close #3512
2025-07-24 16:43:20 +08:00
anime
fc4817e669 feat: add SmartLink component for internal and external links
The component automatically detects link type and applies appropriate
rendering with proper attributes for external links.
2025-07-24 16:38:55 +08:00
anime
a81e17e8e0 fix: correct logo ratio in Gitbook theme
Resolves #3511
2025-07-23 23:06:56 +08:00
tangly1024
8e95616b04 Merge pull request #3489 from CreateSun/main
Feat typography 博客英文标题
2025-07-19 21:22:58 +08:00
tangly1024
288bbbb89b fix next theme menu drop 2025-07-19 21:15:01 +08:00
tangly1024
c68dcb34e2 fix next主题二级菜单图标间隙 2025-07-13 12:39:14 +08:00
tangly1024
c5e94337eb Merge pull request #3490 from tangly1024/feat/lite-mode
starter主题新增lite模式,隐藏页头页脚便于嵌入
2025-07-11 17:49:29 +08:00
tangly1024
2248625b06 微调lite模式 2025-07-11 17:46:00 +08:00
tangly1024
b2c9ed5014 starter主题新增lite模式,隐藏页头页脚便于嵌入 2025-07-11 17:29:38 +08:00
yucui
c6b3d0a108 Feat typography 博客英文标题 2025-07-11 13:38:58 +08:00
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
62d52436cb refactor(utils): rename and improve isUrl to isUrlLikePath
- Rename isUrl function to isUrlLikePath for better clarity
- Simplify function logic and add type checking
- Update all references to use the new function name
- Improve function documentation and parameter typing
2025-07-08 23:06:07 +08:00
anime
b16512ac9a refactor: rename checkStartWithHttp to isHttpLink
- Update function name and implementation in utils/index.js
- Replace all occurrences in getPageProperties.js, post.js, and BlogPostCard.js
- Improve function documentation and use regex for better URL matching
2025-07-08 23:04:41 +08:00
anime
645edd7ead feat: enhance mailto/tel link handling and streamline imports
- Introduced isMailOrTelLink utility function to validate mailto/tel links.
- Updated getPageProperties to properly handle mailto/tel links with target=_self, preventing unintended conversion to internal links by avoiding the addition of slashes.

Closes #3485
2025-07-08 22:59:08 +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
93df743559 feat(algolia): replace error throw with console.error for missing config
Change error handling from throwing an exception to logging an error when
Algolia configuration is missing. This provides better error reporting
without breaking the application flow.
2025-07-08 15:37:59 +08:00
anime
55c39cbab8 feat(algolia): implement global client initialization and reuse
- Add global Algolia client and index initialization
- Initialize client once and reuse across functions
- Remove redundant client initialization in individual functions
- Add configuration validation during initialization
2025-07-08 01:41:50 +08:00
anime
8d200120fc feat(algolia): add data deletion functionality and execute in index.js
- Add `checkDataFromAlgolia` function to identify and delete unused data
- Implement `deletePostDataFromAlgolia` helper function
- Execute Algolia data check during homepage generation
- Handle password-protected and draft pages deletion
2025-07-08 01:20:59 +08:00
anime
7ce6ad0c2f feat(algolia): add data deletion functionality and execute in index.js
- Add `checkDataFromAlgolia` function to identify and delete unused data
- Implement `deletePostDataFromAlgolia` helper function
- Execute Algolia data check during homepage generation
- Handle password-protected and draft pages deletion

Fixes 1526
2025-07-08 01:20:58 +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