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

@ -0,0 +1,17 @@
---
import themeConfig from '@/config'
import { getPagePath } from '@/utils/path'
const { title } = themeConfig.site
const currentPath = Astro.url.pathname
const { getLocalizedPath } = getPagePath(currentPath)
---
<a
class="mt--1.4 text-8.32 c-secondary font-bold font-title"
href={getLocalizedPath('/')}
transition:name="site-title"
data-disable-transition-on-theme
>
{title}
</a>