Commit Graph

4474 Commits

Author SHA1 Message Date
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
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
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
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