--- import Footer from '@components/Footer.astro' import Navbar from '@components/Navbar.astro' import BackToTop from '@components/control/BackToTop.astro' import SideBar from '@components/widget/SideBar.astro' import Layout from './Layout.astro' import { Icon } from 'astro-icon/components' import { siteConfig } from '../config' import type { MarkdownHeading } from 'astro' import TOC from "../components/widget/TOC.astro"; interface Props { title?: string banner?: string description?: string lang?: string setOGTypeArticle?: boolean; headings? : MarkdownHeading[] } const { title, banner, description, lang, setOGTypeArticle, headings = [] } = Astro.props const hasBannerCredit = siteConfig.banner.enable && siteConfig.banner.credit.enable const hasBannerLink = !!siteConfig.banner.credit.url ---
{hasBannerCredit && }