From 49084fa862a22afa7eaee9df3c6fb580e8291cd6 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Mon, 4 May 2026 09:37:21 +0200 Subject: [PATCH] refactor LastUpdated component to use portal-gate for meta tags --- src/components/LastUpdated.astro | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/src/components/LastUpdated.astro b/src/components/LastUpdated.astro index 486d6fa..5d631cf 100644 --- a/src/components/LastUpdated.astro +++ b/src/components/LastUpdated.astro @@ -36,28 +36,6 @@ lastUpdated ||= new Date( Number(updated(Astro.locals.starlightRoute.entry.filePath) + "000") ); -const head = Astro.locals.starlightRoute.head; -head.push({ - tag: "meta", - attrs: { - property: "og:updated_time", - content: lastUpdated?.toISOString() ?? "", - }, -}); -head.push({ - tag: "meta", - attrs: { - property: "article:modified_time", - content: lastUpdated?.toISOString() ?? "", - }, -}); -head.push({ - tag: "meta", - attrs: { - property: "article:published_time", - content: firstPublished.toISOString(), - }, -}); --- { @@ -84,3 +62,8 @@ head.push({

) } + + + + + \ No newline at end of file -- knotmirror 0.0.1