mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 06:43:26 +00:00
Add favicon back + fix title template
This commit is contained in:
@@ -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: {
|
||||||
|
Reference in New Issue
Block a user