From d9285a989e15167bb9edc172b319d3e9f9cc7b28 Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Sat, 29 Aug 2026 20:26:17 -0400 Subject: [PATCH] Emit the site.standard.publication link tag on every page Bluesky's AppView needs a site-wide discovery hint on every page (home and episode pages alike) to render shared links as a verified publication; until now the package only emitted the per-episode site.standard.document tag and the /.well-known endpoint. Gated on STANDARD_SITE_DID and STANDARD_SITE_PUBLICATION_RKEY, so sites without standard.site publishing are unaffected. This restores a fix whiskey.fm carried in its fork before converting to the npm package. Co-Authored-By: Claude Fable 5 --- packages/starpod/src/layouts/Layout.astro | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/starpod/src/layouts/Layout.astro b/packages/starpod/src/layouts/Layout.astro index ba36cc0..d2add7b 100644 --- a/packages/starpod/src/layouts/Layout.astro +++ b/packages/starpod/src/layouts/Layout.astro @@ -4,6 +4,7 @@ import { ClientRouter } from 'astro:transitions'; import { Schema } from 'astro-seo-schema'; import SpeedInsights from '@vercel/speed-insights/astro'; +import { getPublicationAtUri } from '@bryanguffey/astro-standard-site'; import Breadcrumbs from '../components/Breadcrumbs.astro'; import Dots from 'virtual:starpod/components/Dots'; @@ -40,6 +41,22 @@ const { imageUrl, title } = Astro.props; const canonicalURL = Astro.props.canonicalURL ?? new URL(Astro.url.pathname, Astro.site); const description = Astro.props.description ?? starpodConfig.description; + +// standard.site publication discovery hint. Bluesky's AppView needs this +// `` tag on every page (home + episodes) +// to render shared links as a verified publication. On episode pages it sits +// alongside the per-page `` tag. Only +// emitted when the site has configured standard.site publishing. +const standardSiteDid = import.meta.env.STANDARD_SITE_DID; +const standardSitePublicationRkey = import.meta.env + .STANDARD_SITE_PUBLICATION_RKEY; +const publicationLinkTag = + standardSiteDid && standardSitePublicationRkey + ? `` + : null; --- @@ -125,6 +142,8 @@ const description = Astro.props.description ?? starpodConfig.description; }} /> + {publicationLinkTag && } +