--- import GlobalStyles from "@components/GlobalStyles.astro"; import '@fontsource/roboto/400.css'; import '@fontsource/roboto/500.css'; import '@fontsource/roboto/700.css'; import ImageWrapper from "@components/misc/ImageWrapper.astro"; import {pathsEqual} from "@utils/url-utils"; import ConfigCarrier from "@components/ConfigCarrier.astro"; import {profileConfig, siteConfig} from "@/config"; interface Props { title: string; banner: string; description?: string; } let { title, banner, description } = Astro.props; const isHomePage = pathsEqual(Astro.url.pathname, '/'); const testPathName = Astro.url.pathname; const anim = { old: { name: 'fadeIn', duration: '4s', easing: 'linear', fillMode: 'forwards', mixBlendMode: 'normal', }, new: { name: 'fadeOut', duration: '4s', easing: 'linear', fillMode: 'backwards', mixBlendMode: 'normal', } }; const myFade = { forwards: anim, backwards: anim, }; // defines global css variables // why doing this in Layout instead of GlobalStyles: https://github.com/withastro/astro/issues/6728#issuecomment-1502203757 const configHue = siteConfig.themeHue; if (!banner || typeof banner !== 'string' || banner.trim() === '') { banner = siteConfig.banner.src; } // TODO don't use post cover as banner for now banner = siteConfig.banner.src; const enableBanner = siteConfig.banner.enable; let pageTitle; if (title) { pageTitle = `${title} - ${siteConfig.title}`; } else { pageTitle = `${siteConfig.title} - ${siteConfig.subtitle}`; } --- {pageTitle}