mirror of
https://github.com/p-stream/docs.git
synced 2026-04-21 01:22:23 +00:00
Add favicon back + fix title template
This commit is contained in:
parent
f7125538f7
commit
5fcfcc85b7
1 changed files with 10 additions and 3 deletions
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue