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
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue