diff --git a/lib/meta.ts b/lib/meta.ts index b3eafe92e48cc28768c8388c6ed8450c3f6c90e1..a1c94df18d1edade520f2f64ab8b5f483c6c1aab 100644 --- a/lib/meta.ts +++ b/lib/meta.ts @@ -197,6 +197,7 @@ export function toTags(template: Template, meta: Meta): Tags { card: (thumbnailSize ?? (thumbnail ? "banner" : "icon")) === "banner" ? "summary_large_image" : "summary", + url: canonical ?? undefined, ...twitter, }; if (thumbnail) { diff --git a/lib/readme.changes.md b/lib/readme.changes.md index 38752a0ef130eb0f3d1153c5ed94c38d8c82a753..55e20bf0d115f7394fe11cd2e55bf2e8e969e6f7 100644 --- a/lib/readme.changes.md +++ b/lib/readme.changes.md @@ -9,6 +9,7 @@ - widgets can now read keyboard input. - finally fixes resize corruptions for long running widgets - `string/ansi`: add `inverse`, `resetInverse`, and `cursorHome`. +- `meta` auto-embed will now set `twitter:url`. ### fixes