--- import Button from '@/components/Button.astro' import Footer from '@/components/Footer.astro' import Header from '@/components/Header.astro' import Navbar from '@/components/Navbar.astro' import GithubCard from '@/components/Widgets/GithubCard.astro' import GsapAnimation from '@/components/Widgets/GsapAnimation.astro' import PhotoSwipe from '@/components/Widgets/PhotoSwipe.astro' import themeConfig from '@/config' import Head from '@/layouts/Head.astro' import { getPageInfo } from '@/utils/page' import '@/styles/global.css' import '@/styles/font.css' import '@/styles/heti.css' import '@/styles/extend.css' interface Props { postTitle?: string postDescription?: string postSlug?: string supportedLangs?: string[] } const { postTitle, postDescription, postSlug, supportedLangs = [] } = Astro.props const { isPost } = getPageInfo(Astro.url.pathname) const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'font-sans' const MarginBottom = isPost && themeConfig.comment?.enabled ? 'mb-10' // Post page with comment system : 'mb-12' // Other pages without comment system ---