test: title flash issue on ios

This commit is contained in:
radishzzz 2025-02-06 12:56:29 +00:00
parent aa63803aa2
commit 113f37a9e0
6 changed files with 141 additions and 161 deletions

View file

@ -1,34 +0,0 @@
---
import themeConfig from '@/config'
import { getPagePath } from '@/utils/path'
const { title, subtitle } = themeConfig.site
const { titleSpace } = themeConfig.global
const currentPath = Astro.url.pathname
const { getLocalizedPath } = getPagePath(currentPath)
const marginBottom = {
1: 'mb-1',
2: 'mb-3',
3: 'mb-5',
}[titleSpace] || 'mb-3'
---
<header>
<h1>
<a
class={`${marginBottom} mt--5 text-12.8 c-primary font-bold font-title`}
href={getLocalizedPath('/')}
transition:name="site-title"
data-disable-transition-on-theme
>
{title}
</a>
</h1>
{subtitle && (
<h2 class="text-5.6 c-secondary font-navbar">
{subtitle}
</h2>
)}
</header>