--- import themeConfig from '@/config' import { ui } from '@/i18n/ui' import { getPageInfo } from '@/utils/page' const { currentLang, getLocalizedPath } = getPageInfo(Astro.url.pathname) const currentUI = ui[currentLang as keyof typeof ui] const { title, subtitle, i18nTitle } = themeConfig.site const headerTitle = i18nTitle ? currentUI.title : title const headerSubtitle = i18nTitle ? currentUI.subtitle : subtitle const { titleGap } = themeConfig.global const marginBottom = { 1: 'mb-1.625', 2: 'mb-2.875', 3: 'mb-4.125', }[titleGap] || 'mb-2.875' ---

{headerSubtitle && ( )}