--- interface Props { title: string; description: string; image?: string; type?: 'website' | 'article'; noindex?: boolean; keywords?: string[]; publishedTime?: string; modifiedTime?: string; jsonLd?: Record | Array>; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description, image = '/iptvnator/og-image.png', type = 'website', noindex = false, keywords = [], publishedTime, modifiedTime, jsonLd, } = Astro.props; const absoluteImageURL = new URL(image, Astro.site); const robotsContent = noindex ? 'noindex, nofollow, noarchive' : 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'; const schemaPayload = jsonLd ? JSON.stringify(Array.isArray(jsonLd) ? jsonLd : [jsonLd]) : null; --- {keywords.length > 0 && } {title} {type === 'article' && publishedTime && } {type === 'article' && modifiedTime && } {schemaPayload && (