Add favicon back + fix title template

This commit is contained in:
mrjvs
2024-03-31 01:33:03 +01:00
parent f7125538f7
commit 5fcfcc85b7

View File

@@ -2,6 +2,7 @@ import { defineTheme, directory, group, link, social } from '@neato/guider/theme
import { Logo } from './components/Logo'; import { Logo } from './components/Logo';
import { NextSeo } from 'next-seo'; import { NextSeo } from 'next-seo';
import coverUrl from "./public/cover.png"; import coverUrl from "./public/cover.png";
import faviconUrl from "./public/favicon.ico";
export default defineTheme({ export default defineTheme({
github: "movie-web/movie-web", github: "movie-web/movie-web",
@@ -15,19 +16,25 @@ export default defineTheme({
}, },
meta: (pageMeta) => ( meta: (pageMeta) => (
<NextSeo {...{ <NextSeo {...{
titleTemplate: '%s | movie-web', title: `${pageMeta.title ?? "For all your movie and TV show needs"} | movie-web`,
title: pageMeta.title ?? "For all your movie and TV show needs",
description: pageMeta.description ?? "movie-web is a free and open source streaming site, no ads, no tracking, no nonsense.", description: pageMeta.description ?? "movie-web is a free and open source streaming site, no ads, no tracking, no nonsense.",
openGraph: { openGraph: {
images: [{ images: [{
url: coverUrl.src, url: coverUrl.src,
}], }],
title: pageMeta.title ?? "For all your movie and TV show needs", title: `${pageMeta.title ?? "For all your movie and TV show needs"} | movie-web`,
description: pageMeta.description ?? "movie-web is a free and open source streaming site, no ads, no tracking, no nonsense.", description: pageMeta.description ?? "movie-web is a free and open source streaming site, no ads, no tracking, no nonsense.",
}, },
twitter: { twitter: {
cardType: 'summary_large_image', cardType: 'summary_large_image',
}, },
additionalLinkTags: [
{
href: faviconUrl.src,
rel: "icon",
type: "image/x-icon",
}
]
}} /> }} />
), ),
settings: { settings: {