From a54e2add534d64b6db67f7ca197da19da703f217 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 1 Jul 2025 13:32:49 +0100 Subject: [PATCH] Add a/b test (#8868) --- src/layouts/BaseLayout.astro | 20 ++++- src/pages/courses/sql.astro | 159 ++++++++++++++++++----------------- 2 files changed, 100 insertions(+), 79 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index e4012d868..aefd62d23 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -21,10 +21,13 @@ import { siteConfig } from '../lib/config'; import type { ResourceType } from '../lib/resource-progress'; import Bluconic from '../components/Analytics/Bluconic.astro'; import OneTrust from '../components/Analytics/OneTrust.astro'; +import { cn } from '../lib/classname'; export interface Props { title: string; ogImageUrl?: string; + htmlClassName?: string; + bodyClassName?: string; // This isn't used anywhere except for the sponsor event labels briefTitle?: string; redirectUrl?: string; @@ -42,6 +45,8 @@ export interface Props { const { title = siteConfig.title, + htmlClassName, + bodyClassName, briefTitle, description = siteConfig.description, ogImageUrl = 'https://roadmap.sh/images/og-img.png', @@ -72,7 +77,7 @@ const gaPageIdentifier = Astro.url.pathname --- - + @@ -156,10 +161,17 @@ const gaPageIdentifier = Astro.url.pathname { - hasVarify && !import.meta.env.DEV && ( + hasVarify && ( +