Skip to content

Commit

Permalink
fix(app): seo title
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 2, 2024
1 parent 79659df commit a93ce4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/app/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default defineConfig({
policy: [
{
userAgent: '*',
allow: ['/detail/', '/resource/', '/anime/', '/docs/'],
disallow: ['/resources/', '/api/']
allow: ['/detail/', '/resource/', '/resources/', '/anime/', '/docs/'],
disallow: ['/api/']
}
]
}),
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ function followSearch(params: Record<string, string>) {
<Toaster client:only="react" />
</div>
<header class="w-full pt-8vh bg-[#fef8f7] border-b">
<h1 class="text-4xl pb-10rem font-quicksand font-bold text-center select-none outline-none">
<div class="text-4xl pb-10rem font-quicksand font-bold text-center select-none outline-none">
<a href="/">🌸 Anime Garden</a>
</h1>
</div>
<div class="relative z-100">
<div class="vercel absolute top-[-7rem] w-full flex justify-center">
<Search client:only="react" transition:persist />
Expand Down
16 changes: 8 additions & 8 deletions packages/app/src/pages/detail/[provider]/[href].astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ const schema = info
{info && <script type="application/ld+json" set:html={schema} />}

<div class="detail mt-4vh w-full space-y-4">
<h3 class="text-xl font-bold">
<h1 class="text-xl font-bold">
<span>{detail.title}</span>
</h3>
</h1>
<div class="download-link rounded-md shadow-box">
<h4 class="text-lg font-bold border-b px4 py2">
<h2 class="text-lg font-bold border-b px4 py2">
<a href={detail.magnet.href} class="text-link-active">下载链接</a>
</h4>
</h2>
<div
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)"
>
Expand Down Expand Up @@ -78,14 +78,14 @@ const schema = info
class="description"
set:html={detail.description.replace(
/簡介:(&nbsp;)?/,
'<h4 class="text-lg font-bold">简介</h4>'
'<h2 class="text-lg font-bold">简介</h2>'
)}
/>

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

0 comments on commit a93ce4f

Please sign in to comment.