- Added support for conditional rendering of the NekoFollower component in AppShell based on ENABLE_NEKO_FOLLOWER. - Introduced MarkdownImage component in BlogDetailContent for handling images in markdown, supporting both local and external assets. - Improved BlogToc component to use IntersectionObserver for better performance in tracking active headings. - Refactored ContentContent to utilize YoutubeLiteEmbed for embedding YouTube videos, simplifying the video rendering logic. - Created a new YoutubeLiteEmbed component for lazy loading YouTube videos with thumbnail previews. - Updated site-settings to include ENABLE_NEKO_FOLLOWER constant for feature toggling. - Enhanced next.config.ts with image optimization settings for better performance. - Refactored snippets-content to improve code readability and structure. - Cleaned up home-hero and home-videos-section components for better layout and performance.
18 lines
390 B
TypeScript
18 lines
390 B
TypeScript
export type AnnouncementItem = {
|
||
id: string;
|
||
text: string;
|
||
actionLabel: string;
|
||
actionHref: string;
|
||
};
|
||
|
||
export const ENABLE_NEKO_FOLLOWER = false;
|
||
|
||
export const ANNOUNCEMENT_ITEMS: AnnouncementItem[] = [
|
||
{
|
||
id: "main-announcement",
|
||
text: "Yeni videom yayında.",
|
||
actionLabel: "İzle ->",
|
||
actionHref: "https://www.youtube.com/watch?v=FS9F1ttC0uw&t=344s",
|
||
},
|
||
];
|