--- import { defaultLang } from '@/i18n/ui'; import { getLangFromUrl } from '@/i18n/utils'; import type { Head } from '@/types/Head'; interface Props { title: string head?: Head } const { title, head } = Astro.props; const lang = getLangFromUrl(Astro.url) || defaultLang; --- {title} — Leim Wiki {head?.description && ( )} {head?.description && } {head?.image && ( )}