Install on Astro
Add the tags to the <head> of your 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>Agents can request any page on this site as markdown by sending Accept: text/markdown.