- support object format of href
- improve URL string extraction logic
- add proper type checking for href prop
- ensure external links use string format
- 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
- 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
- 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
- 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
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.
- 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
- 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
- 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
- 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