Esta documentación solo está disponible en inglés.
Install on Astro
The tags go in the <head> of the shared layout. Astro.url.pathname is the current page's path.
---
// src/layouts/Base.astro
const card = new URL('/v1/og/YOUR_SITE_ID', 'https://linkmag.net')
card.searchParams.set('path', Astro.url.pathname)
---
<head>
<meta property="og:image" content={card.toString()} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
</head>Los agentes pueden pedir cualquier página de este sitio en markdown enviando Accept: text/markdown.