Skip to content

Commit

Permalink
update seo
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 26, 2023
1 parent 19dd519 commit ae40f3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/Head/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ export default function HeadComponent({ data }: { data?: any }) {
const { locale } = useRouter()
const title = data?.title
const description = data?.description
const punkgaImage = data?.image || 'https://punkga.me/assets/images/thumb.png'
const punkgaTitle = title
? title
? `${title} | Punkga.Me`
: locale == 'vn'
? 'Đa Vũ Trụ Truyện Tranh Online Cho Mọi Người | Punkga.me'
: 'Punkga.me | The Manga Multiverse For All'
? 'Đa Vũ Trụ Truyện Tranh Online Cho Mọi Người | Punkga.Me'
: 'Punkga.Me | The Manga Multiverse For All'
const punkgaDescription = description
? description
: locale == 'vn'
? 'Đọc truyện tranh online tiếng việt cập nhật chapter mới mỗi tuần tại Punkga.me. Đa dạng thể loại: Hành động, Tragedy, Slice of life, Ecchi, Sci-fi, Adventure,...'
? 'Đọc truyện tranh online tiếng việt cập nhật chapter mới mỗi tuần tại Punkga.Me. Đa dạng thể loại: Hành động, Tragedy, Slice of life, Ecchi, Sci-fi, Adventure,...'
: 'Read Manga online free, fast updated, officially licensed with high-quality translated chapters. Start reading now!'
const punkgaImage = data?.image || 'https://punkga.me/assets/images/thumb.png'
return (
<Head>
<title key='title'>{punkgaTitle}</title>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/comic/[comicSlug]/chapter/[chapterNumber]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export const getServerSideProps = async (context) => {
const mangaLanguages =
manga.manga_languages.find((ml) => ml.language_id == 1) ||
manga.manga_languages.find((ml) => ml.is_main_language)
props.title = mangaLanguages?.title
props.title = `${mangaLanguages?.title} - Chapter ${context.params?.chapterNumber}`
props.description = mangaLanguages?.description
} else {
const mangaLanguages =
manga.manga_languages.find((ml) => ml.language_id == 2) ||
manga.manga_languages.find((ml) => ml.is_main_language)
props.title = mangaLanguages?.title
props.title = `${mangaLanguages?.title} - Chương ${context.params?.chapterNumber}`
props.description = mangaLanguages?.description
}
return {
Expand Down

0 comments on commit ae40f3f

Please sign in to comment.