Skip to content

Commit

Permalink
Deleting unnecessary twitter meta tags, quick fixes (#2137)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
cevdetardaharan and delucis authored Jul 23, 2024
1 parent c028542 commit 703903b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-guests-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Removes `twitter:title` and `twitter:description` meta tags from `<head>`
4 changes: 0 additions & 4 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ export default defineConfig({
tag: 'meta',
attrs: { property: 'og:image', content: ogUrl },
},
{
tag: 'meta',
attrs: { property: 'twitter:image', content: ogUrl },
},
],
customCss: process.env.NO_GRADIENTS ? [] : ['./src/assets/landing.css'],
locales,
Expand Down
2 changes: 0 additions & 2 deletions packages/starlight/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ const headDefaults: z.input<ReturnType<typeof HeadConfigSchema>> = [
tag: 'meta',
attrs: { name: 'twitter:card', content: 'summary_large_image' },
},
{ tag: 'meta', attrs: { name: 'twitter:title', content: data.title } },
{ tag: 'meta', attrs: { name: 'twitter:description', content: description } },
];
if (description)
Expand Down

0 comments on commit 703903b

Please sign in to comment.