--- 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 } = themeConfig.site const headerTitle = title || currentUI.title const headerSubtitle = !subtitle ? '' : (subtitle === 'Revive the beauty of typography' ? currentUI.subtitle : subtitle) const { titleSpace } = themeConfig.global const marginBottom = { 1: 'mb-0.625', 2: 'mb-1.875', 3: 'mb-3.125', }[titleSpace] || 'mb-3.125' ---

{headerSubtitle && (

{headerSubtitle}

)}