Download react-spring/docs/app/helpers/meta.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/helpers/meta.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/helpers/meta.ts
-
curl -L -o meta.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/helpers/meta.ts
774 Bytes
| const formatFrontmatterToRemixMeta = (frontmatter: any) => () => { | |
| return [ | |
| { title: frontmatter.meta.title }, | |
| { | |
| name: 'description', | |
| content: frontmatter.meta.description, | |
| }, | |
| { property: 'og:title', content: frontmatter.meta['og:title'] }, | |
| { | |
| name: 'og:description', | |
| contnet: frontmatter.meta['og:description'], | |
| }, | |
| { | |
| name: 'og:url', | |
| content: frontmatter.meta['og:url'], | |
| }, | |
| { | |
| name: 'twitter:url', | |
| content: frontmatter.meta['twitter:url'], | |
| }, | |
| { | |
| name: 'twitter:title', | |
| content: frontmatter.meta['twitter:title'], | |
| }, | |
| { | |
| name: 'twitter:description', | |
| content: frontmatter.meta['twitter:description'], | |
| }, | |
| ] | |
| } | |
| export { formatFrontmatterToRemixMeta } | |