| 6 | } |
| 7 | |
| 8 | export const ogMeta = ({ title, description }: OGMeta): MetaDescriptor[] => { |
| 9 | return [ |
| 10 | { |
| 11 | title: title ?? 'Fontsource', |
| 12 | }, |
| 13 | { |
| 14 | name: 'description', |
| 15 | content: |
| 16 | description ?? |
| 17 | 'Download and self-host 1500+ open-source fonts in neatly bundled NPM packages. Access a comprehensive library of web typefaces for free.', |
| 18 | }, |
| 19 | { |
| 20 | property: 'og:title', |
| 21 | content: title ?? 'Fontsource', |
| 22 | }, |
| 23 | { |
| 24 | property: 'og:description', |
| 25 | content: |
| 26 | description ?? |
| 27 | 'Download and self-host 1500+ open-source fonts in neatly bundled NPM packages. Access a comprehensive library of web typefaces for free.', |
| 28 | }, |
| 29 | { |
| 30 | property: 'og:image', |
| 31 | content: '/og-image.png', |
| 32 | }, |
| 33 | { |
| 34 | property: 'og:image:width', |
| 35 | content: '1200', |
| 36 | }, |
| 37 | { |
| 38 | property: 'og:image:height', |
| 39 | content: '800', |
| 40 | }, |
| 41 | { |
| 42 | name: 'twitter:card', |
| 43 | content: 'summary_large_image', |
| 44 | }, |
| 45 | { |
| 46 | name: 'twitter:site', |
| 47 | content: '@ayuhitoo', |
| 48 | }, |
| 49 | { |
| 50 | name: 'twitter:title', |
| 51 | content: title ?? 'Fontsource', |
| 52 | }, |
| 53 | { |
| 54 | name: 'twitter:description', |
| 55 | content: |
| 56 | description ?? |
| 57 | 'Download and self-host 1500+ open-source fonts in neatly bundled NPM packages. Access a comprehensive library of web typefaces for free.', |
| 58 | }, |
| 59 | { |
| 60 | name: 'twitter:image', |
| 61 | content: '/og-image.png', |
| 62 | }, |
| 63 | { |
| 64 | 'script:ld+json': { |
| 65 | '@context': 'https://schema.org', |