@ewanc26/og 0.1.4 → 0.1.5

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.
@@ -0,0 +1,368 @@
1
+ // ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+ var getFilename = () => fileURLToPath(import.meta.url);
5
+ var getDirname = () => path.dirname(getFilename());
6
+ var __dirname = /* @__PURE__ */ getDirname();
7
+
8
+ // src/templates/blog.ts
9
+ function blogTemplate({
10
+ title,
11
+ description,
12
+ siteName,
13
+ colors,
14
+ noiseDataUrl,
15
+ width,
16
+ height
17
+ }) {
18
+ return {
19
+ type: "div",
20
+ props: {
21
+ style: {
22
+ position: "relative",
23
+ display: "flex",
24
+ flexDirection: "column",
25
+ alignItems: "center",
26
+ justifyContent: "center",
27
+ width,
28
+ height,
29
+ backgroundColor: colors.background
30
+ },
31
+ children: [
32
+ noiseDataUrl ? {
33
+ type: "img",
34
+ props: {
35
+ src: noiseDataUrl,
36
+ width,
37
+ height,
38
+ style: {
39
+ position: "absolute",
40
+ top: 0,
41
+ left: 0,
42
+ width,
43
+ height
44
+ }
45
+ }
46
+ } : null,
47
+ {
48
+ type: "div",
49
+ props: {
50
+ style: {
51
+ position: "relative",
52
+ display: "flex",
53
+ flexDirection: "column",
54
+ alignItems: "center",
55
+ justifyContent: "center",
56
+ width,
57
+ height,
58
+ padding: "0 60px"
59
+ },
60
+ children: [
61
+ {
62
+ type: "h1",
63
+ props: {
64
+ style: {
65
+ fontSize: 64,
66
+ fontWeight: 700,
67
+ color: colors.text,
68
+ letterSpacing: "-0.02em",
69
+ margin: 0,
70
+ textAlign: "center",
71
+ lineHeight: 1.1,
72
+ maxWidth: 1e3
73
+ },
74
+ children: title
75
+ }
76
+ },
77
+ description ? {
78
+ type: "p",
79
+ props: {
80
+ style: {
81
+ fontSize: 28,
82
+ fontWeight: 400,
83
+ color: colors.accent,
84
+ marginTop: 28,
85
+ marginBottom: 0,
86
+ textAlign: "center",
87
+ lineHeight: 1.4,
88
+ maxWidth: 900
89
+ },
90
+ children: description
91
+ }
92
+ } : null,
93
+ {
94
+ type: "p",
95
+ props: {
96
+ style: {
97
+ fontSize: 24,
98
+ fontWeight: 400,
99
+ color: colors.accent,
100
+ marginTop: 56,
101
+ marginBottom: 0,
102
+ textAlign: "center",
103
+ opacity: 0.7
104
+ },
105
+ children: siteName
106
+ }
107
+ }
108
+ ].filter(Boolean)
109
+ }
110
+ }
111
+ ].filter(Boolean)
112
+ }
113
+ };
114
+ }
115
+
116
+ // src/templates/profile.ts
117
+ function profileTemplate({
118
+ title,
119
+ description,
120
+ siteName,
121
+ image,
122
+ colors,
123
+ noiseDataUrl,
124
+ width,
125
+ height
126
+ }) {
127
+ const contentChildren = [];
128
+ if (image) {
129
+ contentChildren.push({
130
+ type: "img",
131
+ props: {
132
+ src: image,
133
+ width: 120,
134
+ height: 120,
135
+ style: {
136
+ borderRadius: "50%",
137
+ marginBottom: 32,
138
+ objectFit: "cover"
139
+ }
140
+ }
141
+ });
142
+ }
143
+ contentChildren.push({
144
+ type: "h1",
145
+ props: {
146
+ style: {
147
+ fontSize: 56,
148
+ fontWeight: 700,
149
+ color: colors.text,
150
+ letterSpacing: "-0.02em",
151
+ margin: 0,
152
+ textAlign: "center",
153
+ lineHeight: 1.1,
154
+ maxWidth: 900
155
+ },
156
+ children: title
157
+ }
158
+ });
159
+ if (description) {
160
+ contentChildren.push({
161
+ type: "p",
162
+ props: {
163
+ style: {
164
+ fontSize: 26,
165
+ fontWeight: 400,
166
+ color: colors.accent,
167
+ marginTop: 20,
168
+ marginBottom: 0,
169
+ textAlign: "center",
170
+ lineHeight: 1.4,
171
+ maxWidth: 700
172
+ },
173
+ children: description
174
+ }
175
+ });
176
+ }
177
+ contentChildren.push({
178
+ type: "p",
179
+ props: {
180
+ style: {
181
+ fontSize: 24,
182
+ fontWeight: 400,
183
+ color: colors.accent,
184
+ marginTop: 48,
185
+ marginBottom: 0,
186
+ textAlign: "center",
187
+ opacity: 0.7
188
+ },
189
+ children: siteName
190
+ }
191
+ });
192
+ return {
193
+ type: "div",
194
+ props: {
195
+ style: {
196
+ position: "relative",
197
+ display: "flex",
198
+ flexDirection: "column",
199
+ alignItems: "center",
200
+ justifyContent: "center",
201
+ width,
202
+ height,
203
+ backgroundColor: colors.background
204
+ },
205
+ children: [
206
+ noiseDataUrl ? {
207
+ type: "img",
208
+ props: {
209
+ src: noiseDataUrl,
210
+ width,
211
+ height,
212
+ style: {
213
+ position: "absolute",
214
+ top: 0,
215
+ left: 0,
216
+ width,
217
+ height
218
+ }
219
+ }
220
+ } : null,
221
+ {
222
+ type: "div",
223
+ props: {
224
+ style: {
225
+ position: "relative",
226
+ display: "flex",
227
+ flexDirection: "column",
228
+ alignItems: "center",
229
+ justifyContent: "center",
230
+ width,
231
+ height,
232
+ padding: "0 60px"
233
+ },
234
+ children: contentChildren
235
+ }
236
+ }
237
+ ].filter(Boolean)
238
+ }
239
+ };
240
+ }
241
+
242
+ // src/templates/default.ts
243
+ function defaultTemplate({
244
+ title,
245
+ description,
246
+ siteName,
247
+ colors,
248
+ noiseDataUrl,
249
+ width,
250
+ height
251
+ }) {
252
+ return {
253
+ type: "div",
254
+ props: {
255
+ style: {
256
+ position: "relative",
257
+ display: "flex",
258
+ flexDirection: "column",
259
+ alignItems: "center",
260
+ justifyContent: "center",
261
+ width,
262
+ height,
263
+ backgroundColor: colors.background
264
+ },
265
+ children: [
266
+ noiseDataUrl ? {
267
+ type: "img",
268
+ props: {
269
+ src: noiseDataUrl,
270
+ width,
271
+ height,
272
+ style: {
273
+ position: "absolute",
274
+ top: 0,
275
+ left: 0,
276
+ width,
277
+ height
278
+ }
279
+ }
280
+ } : null,
281
+ {
282
+ type: "div",
283
+ props: {
284
+ style: {
285
+ position: "relative",
286
+ display: "flex",
287
+ flexDirection: "column",
288
+ alignItems: "center",
289
+ justifyContent: "center",
290
+ width,
291
+ height,
292
+ padding: "0 60px"
293
+ },
294
+ children: [
295
+ {
296
+ type: "h1",
297
+ props: {
298
+ style: {
299
+ fontSize: 72,
300
+ fontWeight: 700,
301
+ color: colors.text,
302
+ letterSpacing: "-0.02em",
303
+ margin: 0,
304
+ textAlign: "center"
305
+ },
306
+ children: title
307
+ }
308
+ },
309
+ description ? {
310
+ type: "p",
311
+ props: {
312
+ style: {
313
+ fontSize: 32,
314
+ fontWeight: 400,
315
+ color: colors.accent,
316
+ marginTop: 24,
317
+ marginBottom: 0,
318
+ textAlign: "center",
319
+ maxWidth: 900
320
+ },
321
+ children: description
322
+ }
323
+ } : null,
324
+ {
325
+ type: "p",
326
+ props: {
327
+ style: {
328
+ fontSize: 28,
329
+ fontWeight: 400,
330
+ color: colors.accent,
331
+ marginTop: 64,
332
+ marginBottom: 0,
333
+ textAlign: "center",
334
+ opacity: 0.7
335
+ },
336
+ children: siteName
337
+ }
338
+ }
339
+ ].filter(Boolean)
340
+ }
341
+ }
342
+ ].filter(Boolean)
343
+ }
344
+ };
345
+ }
346
+
347
+ // src/templates/index.ts
348
+ var templates = {
349
+ blog: blogTemplate,
350
+ profile: profileTemplate,
351
+ default: defaultTemplate
352
+ };
353
+ function getTemplate(name) {
354
+ if (typeof name === "function") {
355
+ return name;
356
+ }
357
+ return templates[name];
358
+ }
359
+
360
+ export {
361
+ __dirname,
362
+ blogTemplate,
363
+ profileTemplate,
364
+ defaultTemplate,
365
+ templates,
366
+ getTemplate
367
+ };
368
+ //# sourceMappingURL=chunk-2I73D34T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js","../src/templates/blog.ts","../src/templates/profile.ts","../src/templates/default.ts","../src/templates/index.ts"],"sourcesContent":["// Shim globals in esm bundle\nimport path from 'node:path'\nimport { fileURLToPath } from 'node:url'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n","/**\n * Blog OG template.\n * Clean centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function blogTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'h1',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 64,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.text,\n\t\t\t\t\t\t\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\t\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tlineHeight: 1.1,\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 1000,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: title,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdescription ? {\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 28,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 28,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tlineHeight: 1.4,\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 900,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: description,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} : null,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 24,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 56,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\topacity: 0.7,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: siteName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].filter(Boolean),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Profile OG template.\n * Centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function profileTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\timage,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\tconst contentChildren: unknown[] = []\n\n\tif (image) {\n\t\tcontentChildren.push({\n\t\t\ttype: 'img',\n\t\t\tprops: {\n\t\t\t\tsrc: image,\n\t\t\t\twidth: 120,\n\t\t\t\theight: 120,\n\t\t\t\tstyle: {\n\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\tmarginBottom: 32,\n\t\t\t\t\tobjectFit: 'cover',\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t}\n\n\tcontentChildren.push({\n\t\ttype: 'h1',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 56,\n\t\t\t\tfontWeight: 700,\n\t\t\t\tcolor: colors.text,\n\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\tmargin: 0,\n\t\t\t\ttextAlign: 'center',\n\t\t\t\tlineHeight: 1.1,\n\t\t\t\tmaxWidth: 900,\n\t\t\t},\n\t\t\tchildren: title,\n\t\t},\n\t})\n\n\tif (description) {\n\t\tcontentChildren.push({\n\t\t\ttype: 'p',\n\t\t\tprops: {\n\t\t\t\tstyle: {\n\t\t\t\t\tfontSize: 26,\n\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\tmarginTop: 20,\n\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\tlineHeight: 1.4,\n\t\t\t\t\tmaxWidth: 700,\n\t\t\t\t},\n\t\t\t\tchildren: description,\n\t\t\t},\n\t\t})\n\t}\n\n\tcontentChildren.push({\n\t\ttype: 'p',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 24,\n\t\t\t\tfontWeight: 400,\n\t\t\t\tcolor: colors.accent,\n\t\t\t\tmarginTop: 48,\n\t\t\t\tmarginBottom: 0,\n\t\t\t\ttextAlign: 'center',\n\t\t\t\topacity: 0.7,\n\t\t\t},\n\t\t\tchildren: siteName,\n\t\t},\n\t})\n\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: contentChildren,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Default OG template.\n * Clean, centered layout.\n */\n\nimport type { OgTemplateProps } from '../types.js'\n\nexport function defaultTemplate({\n\ttitle,\n\tdescription,\n\tsiteName,\n\tcolors,\n\tnoiseDataUrl,\n\twidth,\n\theight,\n}: OgTemplateProps) {\n\treturn {\n\t\ttype: 'div',\n\t\tprops: {\n\t\t\tstyle: {\n\t\t\t\tposition: 'relative',\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'column',\n\t\t\t\talignItems: 'center',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tnoiseDataUrl ? {\n\t\t\t\t\ttype: 'img',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tsrc: noiseDataUrl,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t} : null,\n\t\t\t\t{\n\t\t\t\t\ttype: 'div',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tposition: 'relative',\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t\tpadding: '0 60px',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'h1',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 72,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 700,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.text,\n\t\t\t\t\t\t\t\t\t\tletterSpacing: '-0.02em',\n\t\t\t\t\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: title,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdescription ? {\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 32,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 24,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\tmaxWidth: 900,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: description,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t} : null,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: 'p',\n\t\t\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\tfontSize: 28,\n\t\t\t\t\t\t\t\t\t\tfontWeight: 400,\n\t\t\t\t\t\t\t\t\t\tcolor: colors.accent,\n\t\t\t\t\t\t\t\t\t\tmarginTop: 64,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: 0,\n\t\t\t\t\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t\t\t\t\t\topacity: 0.7,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tchildren: siteName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].filter(Boolean),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t].filter(Boolean),\n\t\t},\n\t}\n}\n","/**\n * Built-in OG templates.\n */\n\nexport { blogTemplate } from './blog.js'\nexport { profileTemplate } from './profile.js'\nexport { defaultTemplate } from './default.js'\n\nimport { blogTemplate } from './blog.js'\nimport { profileTemplate } from './profile.js'\nimport { defaultTemplate } from './default.js'\nimport type { OgTemplate } from '../types.js'\n\nexport const templates = {\n\tblog: blogTemplate,\n\tprofile: profileTemplate,\n\tdefault: defaultTemplate,\n} as const\n\nexport type TemplateName = keyof typeof templates\n\nexport function getTemplate(name: TemplateName | OgTemplate): OgTemplate {\n\tif (typeof name === 'function') {\n\t\treturn name\n\t}\n\treturn templates[name]\n}\n"],"mappings":";AACA,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAE9B,IAAM,cAAc,MAAM,cAAc,YAAY,GAAG;AACvD,IAAM,aAAa,MAAM,KAAK,QAAQ,YAAY,CAAC;AAE5C,IAAM,YAA4B,2BAAW;;;ACA7C,SAAS,aAAa;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAoB;AACnB,SAAO;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,MACN,OAAO;AAAA,QACN,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,QACf,YAAY;A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