--- // import BackToTop from '@/components/BackToTop.astro' import Footer from '@/components/Footer.astro' import MainHeader from '@/components/MainHeader.astro' import MobileHeader from '@/components/MobileHeader.astro' import Navigation from '@/components/Navbar.astro' import LanguageSwitcher from '@/components/Widgets/LanguageSwitcher.astro' // import PhotoSwipe from '@/components/PhotoSwipe.astro' // import Scrollbar from '@/components/Scrollbar.astro' import ThemeToggle from '@/components/Widgets/ThemeToggle.astro' import themeConfig from '@/config' import Head from '@/layouts/Head.astro' import { getPageInfo } from '@/utils/page' import '@/styles/font.css' import '@/styles/global.css' import '@/styles/heti.css' interface Props { postTitle?: string postDescription?: string postSlug?: string supportedLangs?: string[] } const { postTitle, postDescription, postSlug, supportedLangs = [] } = Astro.props const { isHome, isPost } = getPageInfo(Astro.url.pathname) const { light: { background: lightMode }, dark: { background: darkMode } } = themeConfig.color const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'font-sans' const footerMarginClass = isPost && themeConfig.comment?.waline?.serverURL ? 'mt-8' : 'mt-12' ---