this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: og/twitter image and apple-touch-icon for union logo

- og:image, twitter:image, alt; optional absolute URL via FRESH_PUBLIC_SITE_URL

Made-with: Cursor

+15
+15
routes/_app.tsx
··· 1 1 import { define } from "../utils.ts"; 2 2 3 + /** Open Graph / social crawlers prefer absolute image URLs. Set FRESH_PUBLIC_SITE_URL on Deno Deploy (e.g. https://atmosphereaccount.com). */ 4 + function socialImageUrl(path: string): string { 5 + const base = Deno.env.get("FRESH_PUBLIC_SITE_URL")?.replace(/\/$/, ""); 6 + if (base) return `${base}${path.startsWith("/") ? path : `/${path}`}`; 7 + return path; 8 + } 9 + 3 10 const inlineScript = ` 4 11 (function(){ 5 12 /* ---- Scroll reveal ---- */ ··· 196 203 content="The last social account you'll ever need. One account for all your apps." 197 204 /> 198 205 <meta property="og:type" content="website" /> 206 + <meta property="og:image" content={socialImageUrl("/union.svg")} /> 207 + <meta property="og:image:type" content="image/svg+xml" /> 208 + <meta 209 + property="og:image:alt" 210 + content="Atmosphere Account — logo" 211 + /> 199 212 <meta name="twitter:card" content="summary_large_image" /> 213 + <meta name="twitter:image" content={socialImageUrl("/union.svg")} /> 200 214 <link rel="icon" type="image/svg+xml" href="/union.svg" /> 215 + <link rel="apple-touch-icon" href="/union.svg" /> 201 216 <script 202 217 src="https://unpkg.com/@lottiefiles/lottie-player@2.0.8/dist/lottie-player.js" 203 218 defer