Open History to see the last commit
1// Copied from:
2//https://github.com/TanStack/tanstack.com/blob/30a888a492d190cdba0571bd010a250ad0ce5133/src/utils/seo.ts#L1-L33
3export const seo = ({
4 title,
5 description,
6 keywords,
7 image,
8}: {
9 title: string;
10 description?: string;
11 image?: string;
12 keywords?: string;
13}) => {
14 const tags = [
15 { title },
16 { name: "description", content: description },
17 { name: "keywords", content: keywords },
18 { name: "twitter:title", content: title },
19 { name: "twitter:description", content: description },
20 { name: "twitter:creator", content: "@notacheetah" },
21 { name: "twitter:site", content: "@notacheetah" },
22 { property: "og:type", content: "website" },
23 { property: "og:title", content: title },
24 { property: "og:description", content: description },
25 { property: "og:url", content: "https://trytanstackdb.com" },
26 ...(image
27 ? [
28 { name: "twitter:image", content: image },
29 { name: "twitter:card", content: "summary_large_image" },
30 { property: "og:image", content: image },
31 ]
32 : []),
33 ];
34
35 return tags;
36};