8000 fix(app): seo title · yjl9903/AnimeGarden@a93ce4f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit a93ce4f

Browse files
committed
fix(app): seo title
1 parent 79659df commit a93ce4f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

packages/app/astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export default defineConfig({
3131
policy: [
3232
{
3333
userAgent: '*',
34-
allow: ['/detail/', '/resource/', '/anime/', '/docs/'],
35-
disallow: ['/resources/', '/api/']
34+
allow: ['/detail/', '/resource/', '/resources/', '/anime/', '/docs/'],
35+
disallow: ['/api/']
3636
}
3737
]
3838
}),

packages/app/src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ function followSearch(params: Record<string, string>) {
109109
<Toaster client:only="react" />
110110
</div>
111111
<header class="w-full pt-8vh bg-[#fef8f7] border-b">
112-
<h1 class="text-4xl pb-10rem font-quicksand font-bold text-center select-none outline-none">
112+
<div class="text-4xl pb-10rem font-quicksand font-bold text-center select-none outline-none">
113113
<a href="/">🌸 Anime Garden</a>
114-
</h1>
114+
</div>
115115
<div class="relative z-100">
116116
<div class="vercel absolute top-[-7rem] w-full flex justify-center">
117117
<Search client:only="react" transition:persist />

packages/app/src/pages/detail/[provider]/[href].astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ const schema = info
4141
{info && <script type="application/ld+json" set:html={schema} />}
4242

4343
<div class="detail mt-4vh w-full space-y-4">
44-
<h3 class="text-xl font-bold">
44+
<h1 class="text-xl font-bold">
4545
<span>{detail.title}</span>
46-
</h3>
46+
</h1>
4747
<div class="download-link rounded-md shadow-box">
48-
<h4 class="text-lg font-bold border-b px4 py2">
48+
<h2 class="text-lg font-bold border-b px4 py2">
4949
<a href={detail.magnet.href} class="text-link-active">下载链接</a>
50-
</h4>
50+
</h2>
5151
<div
5252
class="p4 space-y-1 overflow-auto whitespace-nowrap [&>div>span]:(text-base-600 select-none inline-block w-[160px] min-w-[160px]) [&>div]:(flex) [&>div>a]:(inline-block flex-1)"
5353
>
@@ -78,14 +78,14 @@ const schema = info
7878
class="description"
7979
set:html={detail.description.replace(
8080
/簡介:(&nbsp;)?/,
81-
'<h4 class="text-lg font-bold">简介</h4>'
81+
'<h2 class="text-lg font-bold">简介</h2>'
8282
)}
8383
/>
8484

8585
<div class="publisher">
86-
<h4 class="text-lg font-bold pb4">
86+
<h2 class="text-lg font-bold pb4">
8787
{detail.fansub ? '发布者 / 字幕组' : '发布者'}
88-
</h4>
88+
</h2>
8989
<div class="flex gap8">
9090
<div>
9191
<a href={`/resources/1?publisherId=${detail.publisher.id}`} class="block text-left">
@@ -121,7 +121,7 @@ const schema = info
121121
>
122122
</div>
123123
<div class="file-list rounded-md shadow-box">
124-
<h4 class="text-lg font-bold border-b px4 py2">文件列表</h4>
124+
<h2 class="text-lg font-bold border-b px4 py2">文件列表</h2>
125125
<div class="mb4 max-h-[80vh] overflow-auto px4">
126126
{
127127
files.map((f) => (

0 commit comments

Comments
 (0)
0