Skip to content
Snippets Groups Projects

fix: base url in header image

Merged Moritz Stückler requested to merge fix/base-url-in-header-image into main
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
@@ -22,8 +22,6 @@ const localeFromUrl =
const rawContent = await Astro.glob<IPage>("../pages/**/*.mdx");
const menuItems = buildPageTree(rawContent, baseUrl, localeFromUrl);
const prefixedImage = prefixWithBaseIfNotUrl(frontmatter.headerImage, baseUrl);
console.log({image: frontmatter.headerImage, baseUrl, prefixedImage});
---
<BaseLayout title={frontmatter.title}>
@@ -34,7 +32,7 @@ console.log({image: frontmatter.headerImage, baseUrl, prefixedImage});
compact={true}
/>
<HeroSection
src={prefixedImage}
src={prefixWithBaseIfNotUrl(frontmatter.headerImage, baseUrl)}
/>
<main class="fc-overflow-x-hidden">
<slot />
Loading