--- import '../styles/global.css'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import SEO from '../components/SEO.astro'; import { SITE_ORIGIN, AUTHOR_NAME } from '../data/site'; interface Props { title: string; description?: string; canonicalUrl?: string; ogImage?: string; ogType?: string; keywords?: string; jsonLd?: object | object[]; noIndex?: boolean; datePublished?: string; dateModified?: string; } const { title, description = 'Collection of alerting rules for Prometheus. Copy-pasteable Prometheus alert configurations for 90+ services.', canonicalUrl, ogImage, ogType, keywords, jsonLd, noIndex = false, datePublished, dateModified, } = Astro.props; const base = import.meta.env.BASE_URL.replace(/\/$/, ''); const canonical = canonicalUrl ?? `${SITE_ORIGIN}${base}${Astro.url.pathname.replace(base, '')}`; --- {noIndex && } Skip to main content