@hutusi/amytis 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.entire/settings.json +4 -0
  2. package/AGENTS.md +13 -7
  3. package/CHANGELOG.md +41 -0
  4. package/CLAUDE.md +30 -2
  5. package/README.md +84 -58
  6. package/README.zh.md +195 -0
  7. package/TODO.md +6 -4
  8. package/bun.lock +30 -4
  9. package/content/books/sample-book/images/digital-garden.svg +25 -0
  10. package/content/books/sample-book/index.mdx +1 -1
  11. package/content/books/sample-book/introduction.mdx +2 -0
  12. package/content/posts/2026-01-21-kitchen-sink/index.mdx +26 -1
  13. package/content/posts/legacy-markdown.md +0 -2
  14. package/content/posts/markdown-features.mdx +1 -1
  15. package/content/posts/multilingual-test.mdx +0 -1
  16. package/content/posts/syntax-highlighting-showcase.mdx +1 -0
  17. package/content/posts/understanding-react-hooks.mdx +1 -0
  18. package/content/series/ai-nexus-weekly/index.mdx +1 -1
  19. package/content/series/digital-garden/01-philosophy.mdx +2 -0
  20. package/content/series/digital-garden/index.mdx +1 -1
  21. package/content/series/markdown-showcase/index.mdx +1 -1
  22. package/content/series/markdown-showcase/syntax-highlighting.mdx +2 -0
  23. package/content/series/nextjs-deep-dive/01-getting-started.mdx +2 -1
  24. package/content/series/nextjs-deep-dive/index.mdx +1 -1
  25. package/content/subscribe.mdx +27 -0
  26. package/docs/ARCHITECTURE.md +85 -105
  27. package/docs/CONTRIBUTING.md +11 -3
  28. package/docs/DIGITAL_GARDEN.md +11 -9
  29. package/docs/deployment.md +31 -13
  30. package/eslint.config.mjs +2 -0
  31. package/package.json +13 -4
  32. package/packages/create-amytis/package.json +13 -0
  33. package/packages/create-amytis/src/index.test.ts +187 -0
  34. package/packages/create-amytis/src/index.ts +230 -0
  35. package/packages/create-amytis/tsconfig.json +14 -0
  36. package/public/images/amytis-screenshot.jpg +0 -0
  37. package/public/images/antelope-canyon.jpg +0 -0
  38. package/public/images/avatar.jpg +0 -0
  39. package/public/images/cappadocia.jpg +0 -0
  40. package/public/images/flowers.jpg +0 -0
  41. package/public/images/galaxy.jpg +0 -0
  42. package/public/images/lake.jpg +0 -0
  43. package/public/images/mountains.jpg +0 -0
  44. package/public/images/vibrant-waves.avif +0 -0
  45. package/public/images/wechat-qr.jpg +0 -0
  46. package/public/next-image-export-optimizer-hashes.json +72 -2
  47. package/scripts/deploy.ts +77 -0
  48. package/site.config.example.ts +268 -0
  49. package/site.config.ts +82 -10
  50. package/src/app/[slug]/[postSlug]/page.tsx +161 -0
  51. package/src/app/[slug]/page/[page]/page.tsx +202 -0
  52. package/src/app/[slug]/page.tsx +162 -7
  53. package/src/app/archive/page.tsx +5 -8
  54. package/src/app/books/[slug]/[chapter]/page.tsx +45 -3
  55. package/src/app/books/[slug]/page.tsx +16 -2
  56. package/src/app/books/page.tsx +12 -8
  57. package/src/app/feed.atom/route.ts +62 -0
  58. package/src/app/feed.xml/route.ts +45 -20
  59. package/src/app/flows/[year]/[month]/[day]/page.tsx +9 -1
  60. package/src/app/flows/[year]/page.tsx +1 -1
  61. package/src/app/flows/page/[page]/page.tsx +2 -0
  62. package/src/app/flows/page.tsx +4 -0
  63. package/src/app/globals.css +9 -3
  64. package/src/app/layout.tsx +22 -1
  65. package/src/app/notes/[slug]/page.tsx +2 -3
  66. package/src/app/page.tsx +86 -8
  67. package/src/app/posts/[slug]/page.tsx +33 -7
  68. package/src/app/posts/page/[page]/page.tsx +9 -5
  69. package/src/app/posts/page.tsx +13 -7
  70. package/src/app/series/[slug]/page/[page]/page.tsx +8 -25
  71. package/src/app/series/[slug]/page.tsx +21 -19
  72. package/src/app/series/page.tsx +14 -28
  73. package/src/app/sitemap.ts +2 -1
  74. package/src/app/tags/[tag]/page.tsx +1 -1
  75. package/src/app/tags/page.tsx +1 -1
  76. package/src/components/Analytics.tsx +34 -36
  77. package/src/components/AuthorCard.tsx +56 -14
  78. package/src/components/BookMobileNav.tsx +8 -34
  79. package/src/components/BookSidebar.tsx +17 -107
  80. package/src/components/CodeBlock.test.tsx +19 -0
  81. package/src/components/CodeBlock.tsx +20 -16
  82. package/src/components/Comments.tsx +4 -3
  83. package/src/components/CoverImage.tsx +11 -3
  84. package/src/components/CuratedSeriesSection.tsx +17 -15
  85. package/src/components/ExternalLinks.tsx +1 -1
  86. package/src/components/FeaturedStoriesSection.tsx +124 -58
  87. package/src/components/FlowCalendarSidebar.tsx +10 -7
  88. package/src/components/FlowContent.tsx +33 -5
  89. package/src/components/Footer.tsx +28 -6
  90. package/src/components/Hero.tsx +44 -92
  91. package/src/components/InlineBookToc.tsx +56 -0
  92. package/src/components/KnowledgeGraph.tsx +26 -0
  93. package/src/components/LanguageProvider.tsx +7 -2
  94. package/src/components/LanguageSwitch.tsx +1 -1
  95. package/src/components/LatestWritingSection.tsx +12 -22
  96. package/src/components/MarkdownRenderer.test.tsx +41 -0
  97. package/src/components/MarkdownRenderer.tsx +43 -8
  98. package/src/components/Navbar.tsx +24 -15
  99. package/src/components/NoteSidebar.tsx +6 -76
  100. package/src/components/Pagination.tsx +2 -2
  101. package/src/components/PostCard.tsx +2 -1
  102. package/src/components/PostList.tsx +81 -62
  103. package/src/components/PostNavigation.tsx +8 -7
  104. package/src/components/PostSidebar.tsx +12 -107
  105. package/src/components/PrevNextNav.tsx +63 -0
  106. package/src/components/RecentNotesSection.tsx +2 -2
  107. package/src/components/RelatedPosts.tsx +3 -2
  108. package/src/components/RssFeedWidget.tsx +55 -0
  109. package/src/components/SectionLabel.tsx +16 -0
  110. package/src/components/SelectedBooksSection.tsx +12 -15
  111. package/src/components/SeriesCatalog.tsx +74 -69
  112. package/src/components/SeriesList.tsx +11 -36
  113. package/src/components/SeriesSidebar.tsx +4 -2
  114. package/src/components/TagContentTabs.tsx +17 -12
  115. package/src/components/TagPageHeader.tsx +12 -2
  116. package/src/components/TagSidebar.tsx +3 -2
  117. package/src/components/TagsIndexClient.tsx +1 -1
  118. package/src/components/TocPanel.tsx +67 -0
  119. package/src/hooks/useActiveHeading.ts +32 -0
  120. package/src/hooks/useSidebarAutoScroll.ts +19 -0
  121. package/src/i18n/translations.ts +26 -4
  122. package/src/layouts/BookLayout.tsx +10 -40
  123. package/src/layouts/PostLayout.tsx +37 -26
  124. package/src/layouts/SimpleLayout.tsx +5 -5
  125. package/src/lib/feed-utils.ts +68 -0
  126. package/src/lib/format-utils.test.ts +27 -0
  127. package/src/lib/format-utils.ts +3 -0
  128. package/src/lib/image-utils.ts +12 -0
  129. package/src/lib/json-ld.ts +236 -0
  130. package/src/lib/markdown.ts +62 -7
  131. package/src/lib/rehype-image-metadata.test.ts +124 -0
  132. package/src/lib/rehype-image-metadata.ts +21 -5
  133. package/src/lib/scroll-utils.ts +11 -0
  134. package/src/lib/shuffle.ts +21 -0
  135. package/src/lib/urls.ts +51 -0
  136. package/tests/e2e/navigation.test.ts +15 -1
  137. package/tests/integration/books.test.ts +61 -0
  138. package/tests/integration/feed-utils.test.ts +145 -0
  139. package/tests/integration/series.test.ts +9 -0
  140. package/tests/unit/static-params.test.ts +59 -2
  141. package/src/app/subscribe/page.tsx +0 -17
  142. package/src/components/SubscribePage.tsx +0 -298
  143. /package/public/{screenshot.png → images/screenshot.png} +0 -0
@@ -1,298 +0,0 @@
1
- 'use client';
2
-
3
- import { useState } from 'react';
4
- import Image from 'next/image';
5
- import Link from 'next/link';
6
- import { useLanguage } from './LanguageProvider';
7
- import { siteConfig } from '../../site.config';
8
- import { LuCheck, LuCopy, LuExternalLink, LuGithub, LuMail } from 'react-icons/lu';
9
-
10
- // ─── Platform SVG icons ────────────────────────────────────────────────────────
11
-
12
- function RssIcon() {
13
- return (
14
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
15
- <path d="M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20 4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z" />
16
- </svg>
17
- );
18
- }
19
-
20
- function TelegramIcon() {
21
- return (
22
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
23
- <path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" />
24
- </svg>
25
- );
26
- }
27
-
28
- function WechatIcon() {
29
- return (
30
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
31
- <path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-7.062-6.122zm-3.518 3.507c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z" />
32
- </svg>
33
- );
34
- }
35
-
36
- function SubstackIcon() {
37
- return (
38
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
39
- <path d="M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z" />
40
- </svg>
41
- );
42
- }
43
-
44
- function XIcon() {
45
- return (
46
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
47
- <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.742l7.775-8.906L2.003 2.25H8.08l4.261 5.628 5.903-5.628zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
48
- </svg>
49
- );
50
- }
51
-
52
- // ─── Shared card wrapper ───────────────────────────────────────────────────────
53
-
54
- interface CardProps {
55
- icon: React.ReactNode;
56
- title: string;
57
- description: string;
58
- children: React.ReactNode;
59
- wide?: boolean;
60
- }
61
-
62
- function SubscribeCard({ icon, title, description, children, wide }: CardProps) {
63
- return (
64
- <div className={`rounded-2xl border border-muted/20 bg-muted/5 p-6 space-y-4${wide ? ' md:col-span-2' : ''}`}>
65
- <div className="flex items-center gap-3">
66
- <div className="w-9 h-9 rounded-lg bg-accent/10 flex items-center justify-center text-accent flex-shrink-0">
67
- {icon}
68
- </div>
69
- <h2 className="font-serif font-bold text-xl text-heading">{title}</h2>
70
- </div>
71
- <p className="text-sm text-muted/70 leading-relaxed">{description}</p>
72
- {children}
73
- </div>
74
- );
75
- }
76
-
77
- // ─── Main component ────────────────────────────────────────────────────────────
78
-
79
- export default function SubscribePage() {
80
- const { t } = useLanguage();
81
- const [copied, setCopied] = useState(false);
82
-
83
- const { baseUrl, social, subscribe } = siteConfig;
84
- const feedUrl = `${baseUrl}/feed.xml`;
85
- const enc = encodeURIComponent(feedUrl);
86
-
87
- const rssReaders = [
88
- { name: 'Follow', url: `https://app.follow.is/add?url=${enc}` },
89
- { name: 'Feedly', url: `https://feedly.com/i/subscription/feed/${enc}` },
90
- { name: 'Inoreader', url: `https://www.inoreader.com/?add_feed=${enc}` },
91
- { name: 'NewsBlur', url: `https://newsblur.com/?url=${enc}` },
92
- { name: 'The Old Reader', url: `https://theoldreader.com/feeds/subscribe?url=${enc}` },
93
- ];
94
-
95
- const hasSubstack = !!subscribe?.substack;
96
- const hasEmail = !!subscribe?.email;
97
- const hasTelegram = !!subscribe?.telegram;
98
- const hasWechat = !!subscribe?.wechat?.qrCode;
99
- const hasNewsletter = hasSubstack || hasEmail;
100
-
101
- const handleCopy = async () => {
102
- try {
103
- await navigator.clipboard.writeText(feedUrl);
104
- setCopied(true);
105
- setTimeout(() => setCopied(false), 2000);
106
- } catch {
107
- // fallback: select text — clipboard API may not be available in all contexts
108
- }
109
- };
110
-
111
- return (
112
- <div className="max-w-3xl">
113
- {/* Page header */}
114
- <header className="page-header">
115
- <h1 className="page-title">{t('subscribe')}</h1>
116
- <p className="page-subtitle">{t('subscribe_subtitle')}</p>
117
- </header>
118
-
119
- <div className="grid grid-cols-1 md:grid-cols-2 gap-5">
120
-
121
- {/* ── RSS Feed ── always visible */}
122
- <SubscribeCard
123
- wide
124
- icon={<RssIcon />}
125
- title={t('rss_readers')}
126
- description={t('rss_description')}
127
- >
128
- {/* Reader quick-subscribe links */}
129
- <div className="flex flex-wrap gap-2">
130
- {rssReaders.map(({ name, url }) => (
131
- <a
132
- key={name}
133
- href={url}
134
- target="_blank"
135
- rel="noopener noreferrer"
136
- className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg border border-muted/20 bg-background hover:border-accent hover:text-accent transition-colors no-underline"
137
- >
138
- {name}
139
- <LuExternalLink className="w-3 h-3 opacity-50" />
140
- </a>
141
- ))}
142
- </div>
143
-
144
- {/* Feed URL with copy button */}
145
- <div className="flex items-center gap-2 mt-1 px-3 py-2.5 rounded-lg bg-muted/5 border border-muted/15">
146
- <code className="text-xs font-mono text-muted/60 flex-1 truncate">{feedUrl}</code>
147
- <button
148
- onClick={handleCopy}
149
- className="flex-shrink-0 flex items-center gap-1.5 text-xs text-muted/60 hover:text-accent transition-colors"
150
- aria-label={t('copy_feed_url')}
151
- >
152
- {copied
153
- ? <><LuCheck className="w-3.5 h-3.5 text-accent" /><span className="text-accent">{t('feed_url_copied')}</span></>
154
- : <><LuCopy className="w-3.5 h-3.5" /><span>{t('copy_feed_url')}</span></>
155
- }
156
- </button>
157
- </div>
158
- </SubscribeCard>
159
-
160
- {/* ── Email / Substack ── conditional */}
161
- {hasNewsletter && (
162
- <SubscribeCard
163
- icon={hasSubstack ? <SubstackIcon /> : <LuMail className="w-5 h-5" />}
164
- title={t('email_newsletter')}
165
- description={t('email_newsletter_description')}
166
- >
167
- {hasSubstack && (
168
- <a
169
- href={subscribe!.substack}
170
- target="_blank"
171
- rel="noopener noreferrer"
172
- className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-accent/10 text-accent hover:bg-accent/20 transition-colors no-underline"
173
- >
174
- <SubstackIcon />
175
- {t('subscribe_on_substack')}
176
- <LuExternalLink className="w-3.5 h-3.5 opacity-60" />
177
- </a>
178
- )}
179
- {!hasSubstack && hasEmail && (
180
- <a
181
- href={subscribe!.email}
182
- target="_blank"
183
- rel="noopener noreferrer"
184
- className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-accent/10 text-accent hover:bg-accent/20 transition-colors no-underline"
185
- >
186
- <LuMail className="w-4 h-4" />
187
- {t('subscribe_via_email')}
188
- <LuExternalLink className="w-3.5 h-3.5 opacity-60" />
189
- </a>
190
- )}
191
- </SubscribeCard>
192
- )}
193
-
194
- {/* ── Telegram ── conditional */}
195
- {hasTelegram && (
196
- <SubscribeCard
197
- icon={<TelegramIcon />}
198
- title={t('telegram_channel')}
199
- description={t('telegram_channel_description')}
200
- >
201
- <a
202
- href={subscribe!.telegram}
203
- target="_blank"
204
- rel="noopener noreferrer"
205
- className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg bg-accent/10 text-accent hover:bg-accent/20 transition-colors no-underline"
206
- >
207
- <TelegramIcon />
208
- {t('join_channel')}
209
- <LuExternalLink className="w-3.5 h-3.5 opacity-60" />
210
- </a>
211
- </SubscribeCard>
212
- )}
213
-
214
- {/* ── WeChat Official Account ── conditional */}
215
- {hasWechat && (
216
- <SubscribeCard
217
- icon={<WechatIcon />}
218
- title={t('wechat_official')}
219
- description={t('wechat_description')}
220
- >
221
- <div className="flex flex-col items-start gap-3">
222
- <div className="w-36 h-36 rounded-xl border border-muted/20 overflow-hidden bg-white flex items-center justify-center">
223
- <Image
224
- src={subscribe!.wechat!.qrCode}
225
- alt={subscribe?.wechat?.account || 'WeChat QR Code'}
226
- width={144}
227
- height={144}
228
- className="object-contain"
229
- />
230
- </div>
231
- {subscribe?.wechat?.account && (
232
- <p className="text-sm font-mono text-muted/60">{subscribe.wechat.account}</p>
233
- )}
234
- <p className="text-xs text-muted/50 italic">{t('scan_qr_code')}</p>
235
- </div>
236
- </SubscribeCard>
237
- )}
238
-
239
- {/* ── Social connections ── always visible if social links exist */}
240
- {(social?.twitter || social?.github || social?.email) && (
241
- <SubscribeCard
242
- wide={!hasNewsletter && !hasTelegram && !hasWechat}
243
- icon={
244
- <svg viewBox="0 0 24 24" className="w-5 h-5" fill="currentColor" aria-hidden="true">
245
- <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z" />
246
- </svg>
247
- }
248
- title={t('social_connections')}
249
- description="Follow along on social platforms for updates, discussions, and more."
250
- >
251
- <div className="flex flex-wrap gap-2">
252
- {social?.twitter && (
253
- <a
254
- href={social.twitter}
255
- target="_blank"
256
- rel="noopener noreferrer"
257
- className="inline-flex items-center gap-2 px-3 py-1.5 text-sm rounded-lg border border-muted/20 bg-background hover:border-accent hover:text-accent transition-colors no-underline"
258
- >
259
- <XIcon />
260
- Twitter / X
261
- </a>
262
- )}
263
- {social?.github && (
264
- <a
265
- href={social.github}
266
- target="_blank"
267
- rel="noopener noreferrer"
268
- className="inline-flex items-center gap-2 px-3 py-1.5 text-sm rounded-lg border border-muted/20 bg-background hover:border-accent hover:text-accent transition-colors no-underline"
269
- >
270
- <LuGithub className="w-4 h-4" />
271
- GitHub
272
- </a>
273
- )}
274
- {social?.email && (
275
- <a
276
- href={social.email}
277
- className="inline-flex items-center gap-2 px-3 py-1.5 text-sm rounded-lg border border-muted/20 bg-background hover:border-accent hover:text-accent transition-colors no-underline"
278
- >
279
- <LuMail className="w-4 h-4" />
280
- Email
281
- </a>
282
- )}
283
- </div>
284
- </SubscribeCard>
285
- )}
286
-
287
- </div>
288
-
289
- {/* Tip note about RSS */}
290
- <p className="mt-10 text-xs text-muted/50 text-center">
291
- RSS is an open standard — no account required. Copy the feed URL into any reader app.{' '}
292
- <Link href="/feed.xml" className="hover:text-accent transition-colors" target="_blank">
293
- View raw feed →
294
- </Link>
295
- </p>
296
- </div>
297
- );
298
- }