--- import GlobalStyles from "../components/GlobalStyles.astro"; import '@fontsource/roboto/400.css'; import '@fontsource/roboto/500.css'; import '@fontsource/roboto/700.css'; import { ViewTransitions } from 'astro:transitions'; import ImageBox from "../components/misc/ImageBox.astro"; import { fade } from 'astro:transitions'; import {getConfig} from "../utils/config-utils"; import {pathsEqual} from "../utils/url-utils"; interface Props { title: string; banner: string; } let { title, banner } = Astro.props; const isHomePage = pathsEqual(Astro.url.pathname, '/') || pathsEqual(Astro.url.pathname, '/page/1'); 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 viConf = getConfig(); const configHue = viConf.appearance.hue; if (!banner || typeof banner !== 'string' || banner.trim() === '') { banner = viConf.banner.url; } // TODO don't use post cover as banner for now banner = viConf.banner.url; --- {title}