--- import { SITE } from "@config"; import "@styles/base.css"; const googleSiteVerification = import.meta.env.PUBLIC_GOOGLE_SITE_VERIFICATION; export interface Props { title?: string; subtitle?: string; author?: string; description?: string; ogImage?: string; canonicalURL?: string; } const { title = SITE.title, subtitle = SITE.subtitle, author = SITE.author, description = SITE.desc, ogImage = SITE.ogImage, canonicalURL = new URL(Astro.url.pathname, Astro.site).href, } = Astro.props; const socialImageURL = new URL( ogImage ? ogImage : SITE.ogImage, Astro.url.origin ).href; --- {title} { // If PUBLIC_GOOGLE_SITE_VERIFICATION is set in the environment variable, // include google-site-verification tag in the heading // Learn more: https://support.google.com/webmasters/answer/9008080#meta_tag_verification&zippy=%2Chtml-tag googleSiteVerification && ( ) }