Fix page title

This commit is contained in:
Daniel Bulant 2021-08-06 21:05:41 +02:00 committed by GitHub
parent fbd470a8db
commit d2cbfb4626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,8 @@
$: manga = scoped.manga;
var atHome = scoped.atHome;
$: atHome = scoped.atHome;
var title = manga.title.en || manga.title.jp || Object.values(manga.title)[0];
$: title = manga.title.en || manga.title.jp || Object.values(manga.title)[0];
var quality = "data";
@ -178,8 +180,8 @@
<svelte:window on:keydown={keydown} on:keyup={keyup} on:resize={isZooming} />
<svelte:head>
<title>{manga.title.en} Chapter {chapter.data.attributes.chapter} Page {page}</title>
<meta name="description" value="Read page {page} of chapter {chapter.data.attributes.chapter} of {manga.title.en} online. Free of charge and ads." />
<title>{title} Chapter {chapter.data.attributes.chapter} Page {page}</title>
<meta name="description" value="Read page {page} of chapter {chapter.data.attributes.chapter} of {title} online. Free of charge and ads." />
</svelte:head>
<div class="top">
@ -243,4 +245,4 @@
background: white;
border-radius: 0 5px 0 0;
}
</style>
</style>