You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Try Whenny live! Interactive examples of smart formatting, relative time, duration formatting, countdown timers, and calendar helpers. See how this modern TypeScript date library handles any date scenario.',
6
+
keywords: [
7
+
'date library demo',
8
+
'typescript date examples',
9
+
'relative time demo',
10
+
'countdown timer react',
11
+
'date formatting examples',
12
+
'moment.js alternative demo',
13
+
'smart date formatting',
14
+
],
15
+
openGraph: {
16
+
title: 'Interactive Demo - Whenny Date Library',
17
+
description: 'Try Whenny live! Interactive examples of smart formatting, relative time, duration formatting, countdown timers, and calendar helpers.',
description: 'Complete documentation for Whenny, the modern TypeScript date library. Learn formatting, relative time, timezones, React hooks, and more. API reference with code examples.',
6
+
keywords: [
7
+
'date library documentation',
8
+
'typescript date api',
9
+
'date formatting guide',
10
+
'timezone handling tutorial',
11
+
'react date hooks',
12
+
'moment.js migration',
13
+
'dayjs alternative docs',
14
+
'date-fns comparison',
15
+
],
16
+
openGraph: {
17
+
title: 'Documentation - Whenny Date Library',
18
+
description: 'Complete documentation for Whenny. Learn formatting, relative time, timezones, React hooks, and more.',
Copy file name to clipboardExpand all lines: apps/example/app/layout.tsx
+105-2Lines changed: 105 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,106 @@
1
1
importtype{Metadata}from'next'
2
2
import'./globals.css'
3
3
4
+
consttitle='Whenny - The Modern TypeScript Date Library for the AI Era'
5
+
constdescription='A modern date library that makes dates just work. Zero-config timezone handling, AI-friendly API, shadcn-style code ownership. The friendly alternative to Moment.js, Day.js, and date-fns for TypeScript developers.'
6
+
consturl='https://whenny.dev'
7
+
4
8
exportconstmetadata: Metadata={
5
-
title: 'Whenny - Date Library Example',
6
-
description: 'A modern date library for the AI era',
9
+
metadataBase: newURL(url),
10
+
title: {
11
+
default: title,
12
+
template: '%s | Whenny',
13
+
},
14
+
description,
15
+
keywords: [
16
+
'typescript date library',
17
+
'javascript date library',
18
+
'date formatting',
19
+
'timezone handling',
20
+
'moment.js alternative',
21
+
'dayjs alternative',
22
+
'date-fns alternative',
23
+
'relative time',
24
+
'time ago',
25
+
'countdown timer',
26
+
'duration formatting',
27
+
'natural language dates',
28
+
'business days calculator',
29
+
'shadcn components',
30
+
'AI-friendly dates',
31
+
'MCP server',
32
+
'date parser',
33
+
'smart date formatting',
34
+
'i18n dates',
35
+
'internationalization',
36
+
'TypeScript',
37
+
'React hooks',
38
+
'server client sync',
39
+
'timezone transfer',
40
+
],
41
+
authors: [{name: 'Whenny Contributors'}],
42
+
creator: 'Whenny',
43
+
publisher: 'Whenny',
44
+
robots: {
45
+
index: true,
46
+
follow: true,
47
+
googleBot: {
48
+
index: true,
49
+
follow: true,
50
+
'max-video-preview': -1,
51
+
'max-image-preview': 'large',
52
+
'max-snippet': -1,
53
+
},
54
+
},
55
+
openGraph: {
56
+
type: 'website',
57
+
locale: 'en_US',
58
+
url,
59
+
title,
60
+
description,
61
+
siteName: 'Whenny',
62
+
images: [
63
+
{
64
+
url: '/og-image.png',
65
+
width: 1200,
66
+
height: 630,
67
+
alt: 'Whenny - The Modern TypeScript Date Library',
68
+
},
69
+
],
70
+
},
71
+
twitter: {
72
+
card: 'summary_large_image',
73
+
title,
74
+
description,
75
+
images: ['/og-image.png'],
76
+
},
77
+
alternates: {
78
+
canonical: url,
79
+
},
80
+
category: 'technology',
81
+
classification: 'Software Development',
82
+
}
83
+
84
+
// JSON-LD Structured Data for rich search results
0 commit comments