mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
test: title flash issue on ios
This commit is contained in:
parent
aa63803aa2
commit
113f37a9e0
6 changed files with 141 additions and 161 deletions
17
src/components/MobileHeader.astro
Normal file
17
src/components/MobileHeader.astro
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue