From c2e44c470cc18016dd2707dde8bc2e737c8aa062 Mon Sep 17 00:00:00 2001 From: "EPAZZ\\estpp" Date: Thu, 7 May 2026 21:58:34 -0500 Subject: [PATCH] feat: implement Telegram Instant View template and update news page SEO components --- src/components/BaseHead.astro | 2 +- src/pages/[locale]/[news_slug]/[id].astro | 8 ++++++-- src/pages/[news_slug]/[id].astro | 13 ++++++++----- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 5268de8..016ad67 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -36,7 +36,7 @@ const imageUrl = image ? new URL(image, Astro.site).toString() : null; - {date && } + {date && } diff --git a/src/pages/[locale]/[news_slug]/[id].astro b/src/pages/[locale]/[news_slug]/[id].astro index 58d573f..c4429cf 100644 --- a/src/pages/[locale]/[news_slug]/[id].astro +++ b/src/pages/[locale]/[news_slug]/[id].astro @@ -57,6 +57,10 @@ const localeDate = new Intl.DateTimeFormat(locale || "es", { month: "long", day: "numeric", }).format(post.data.date); +const y = post.data.date.getFullYear(); +const m = String(post.data.date.getMonth() + 1).padStart(2, "0"); +const d = String(post.data.date.getDate()).padStart(2, "0"); +const dateISO = `${y}-${m}-${d}`; --- diff --git a/src/pages/[news_slug]/[id].astro b/src/pages/[news_slug]/[id].astro index 994321c..821247f 100644 --- a/src/pages/[news_slug]/[id].astro +++ b/src/pages/[news_slug]/[id].astro @@ -31,6 +31,10 @@ const pageUrl = new URL(`/${post.data.locale}/${news_slug}/${post.id}`, baseUrl) const imageUrl = post.data.thumbnail ? new URL(post.data.thumbnail, baseUrl).toString() : null; const localeDate = new Intl.DateTimeFormat(post.data.locale || 'es', { year: 'numeric', month: 'long', day: 'numeric' }).format(post.data.date); +const y = post.data.date.getFullYear(); +const m = String(post.data.date.getMonth() + 1).padStart(2, '0'); +const d = String(post.data.date.getDate()).padStart(2, '0'); +const dateISO = `${y}-${m}-${d}`; --- @@ -65,7 +69,7 @@ const localeDate = new Intl.DateTimeFormat(post.data.locale || 'es', { year: 'nu )} - +