--- import themeConfig from '@/config' import { ClientRouter } from 'astro:transitions' interface Props { postTitle?: string postDescription?: string postImage?: string } const { postTitle, postDescription, postImage } = Astro.props const { title, subtitle, description, author, url, favicon } = themeConfig.site const { mode, light: { background: lightMode }, dark: { background: darkMode } } = themeConfig.color const initMetaTheme = mode === 'dark' ? darkMode : lightMode const { locale, moreLocale } = themeConfig.global const { verification = {}, twitterID = '', googleAnalyticsID = '', umamiAnalyticsID = '' } = themeConfig.seo ?? {} const { google = '', bing = '', yandex = '', baidu = '' } = verification const { commentURL = '', imageHostURL = '', customGoogleAnalyticsJS = '', customUmamiAnalyticsJS = '' } = themeConfig.preload --- {favicon.toLowerCase().endsWith('.webp') && } {favicon.toLowerCase().endsWith('.svg') && } {favicon.toLowerCase().endsWith('.png') && } {postTitle ? `${postTitle} | ${title}` : `${title} - ${subtitle}`} {commentURL && } {commentURL && } {imageHostURL && } {imageHostURL && } {[locale, ...moreLocale].map(lang => ( ))} {twitterID && ( <> )} {google && } {bing && } {yandex && } {baidu && } {googleAnalyticsID && ( <> )} {umamiAnalyticsID && (