diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index d7e11d1..e01c449 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -106,6 +106,51 @@ const gscVerification = import.meta.env.PUBLIC_GSC_VERIFICATION_TOKEN; }); +{/* Copy-to-clipboard for command blocks (#45): one delegated listener per + page, same pattern as the theme toggle. Each button carries its locale's + labels as data attributes, so this script stays locale-agnostic. Falls + back to a hidden textarea + execCommand for older Safari. */} + + { analyticsToken && (