Commit fac8e3be authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: add page title and description to open graph meta

parent 15350704
Pipeline #293872 passed with stages
in 9 minutes and 37 seconds
......@@ -63,7 +63,7 @@ export default function TemplatePage(_props: TemplatePage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<h1>{title}</h1>
</PageMainContent>
......
......@@ -46,7 +46,7 @@ export default function NotFoundPage(_props: NotFoundPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ErrorScreenLayout>
<BackgroundImage />
......
......@@ -46,7 +46,7 @@ export default function NotFoundPage(_props: NotFoundPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ErrorScreenLayout>
<BackgroundImage />
......
......@@ -87,7 +87,7 @@ export default function AboutPage(props: AboutPage.TemplateProps): JSX.Element {
return (
<Fragment>
<PageMetadata title={props.metadata.title} />
<PageMetadata title={props.metadata.title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AboutScreenLayout>
<BackgroundImage />
......
......@@ -63,7 +63,7 @@ export default function ActorsPage(_props: ActorsPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithoutFiltersLayout>
<BackgroundImage />
......
......@@ -64,7 +64,7 @@ export default function ContributedItemsPage(_props: ContributedItemsPage.Props)
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithFiltersLayout>
<BackgroundImage />
......
......@@ -63,7 +63,7 @@ export default function DraftItemsPage(_props: DraftItemsPage.Props): JSX.Elemen
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithoutFiltersLayout>
<BackgroundImage />
......
......@@ -55,7 +55,7 @@ export default function AccountPage(_props: AccountPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenLayout>
<BackgroundImage />
......
......@@ -64,7 +64,7 @@ export default function ModerateItemsPage(_props: ModerateItemsPage.Props): JSX.
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithFiltersLayout>
<BackgroundImage />
......
......@@ -63,7 +63,7 @@ export default function SourcesPage(_props: SourcesPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithoutFiltersLayout>
<BackgroundImage />
......
......@@ -63,7 +63,7 @@ export default function UsersPage(_props: UsersPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithoutFiltersLayout>
<BackgroundImage />
......
......@@ -64,7 +64,7 @@ export default function VocabulariesPage(_props: VocabulariesPage.Props): JSX.El
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<AccountScreenWithFiltersLayout>
<BackgroundImage />
......
......@@ -63,7 +63,7 @@ export namespace AdminPage {
export default function AdminPage(_props: AdminPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title="CMS" />
<PageMetadata nofollow noindex title="CMS" openGraph={{}} twitter={{}} />
<div id="nc-root" />
<Cms />
</Fragment>
......
......@@ -47,7 +47,7 @@ export default function SignInPage(_props: SignInPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<SignInScreenLayout>
<BackgroundGradient />
......
......@@ -47,7 +47,7 @@ export default function SignUpPage(_props: SignUpPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<SignUpScreenLayout>
<BackgroundGradient />
......
......@@ -89,7 +89,7 @@ export default function BrowsePage(props: BrowsePage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata title={title} />
<PageMetadata title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<BrowseScreenLayout>
<BackgroundImage />
......
......@@ -57,7 +57,7 @@ export default function ContactPage(_props: ContactPage.Props): JSX.Element {
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ContactScreenLayout>
<BackgroundImage />
......
......@@ -87,7 +87,7 @@ export default function ContributePage(props: ContributePage.TemplateProps): JSX
return (
<Fragment>
<PageMetadata title={props.metadata.title} />
<PageMetadata title={props.metadata.title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ContributeScreenLayout>
<BackgroundImage />
......
......@@ -35,7 +35,6 @@ import { routes } from '@/lib/core/navigation/routes'
import { PageMainContent } from '@/lib/core/page/PageMainContent'
import { Centered } from '@/lib/core/ui/Centered/Centered'
import { FullPage } from '@/lib/core/ui/FullPage/FullPage'
import { LoadingIndicator } from '@/lib/core/ui/LoadingIndicator/LoadingIndicator'
import { ProgressSpinner } from '@/lib/core/ui/ProgressSpinner/ProgressSpinner'
export type UpdateDatasetFormValues = ItemFormValues<DatasetInput>
......@@ -147,7 +146,7 @@ export default function EditDatasetPage(props: EditDatasetPage.Props): JSX.Eleme
if (router.isFallback || dataset == null) {
return (
<Fragment>
<PageMetadata title={title} />
<PageMetadata title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<FullPage>
<Centered>
......@@ -161,7 +160,7 @@ export default function EditDatasetPage(props: EditDatasetPage.Props): JSX.Eleme
return (
<Fragment>
<PageMetadata nofollow noindex title={title} />
<PageMetadata nofollow noindex title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ItemFormScreenLayout>
<BackgroundImage />
......
......@@ -32,7 +32,6 @@ import type { QueryMetadata } from '@/lib/core/query/types'
import { Breadcrumbs } from '@/lib/core/ui/Breadcrumbs/Breadcrumbs'
import { Centered } from '@/lib/core/ui/Centered/Centered'
import { FullPage } from '@/lib/core/ui/FullPage/FullPage'
import { LoadingIndicator } from '@/lib/core/ui/LoadingIndicator/LoadingIndicator'
import { ProgressSpinner } from '@/lib/core/ui/ProgressSpinner/ProgressSpinner'
export namespace DatasetHistoryPage {
......@@ -105,7 +104,7 @@ export default function DatasetHistoryPage(props: DatasetHistoryPage.Props): JSX
if (router.isFallback) {
return (
<Fragment>
<PageMetadata title={title} />
<PageMetadata title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<FullPage>
<Centered>
......@@ -135,7 +134,7 @@ export default function DatasetHistoryPage(props: DatasetHistoryPage.Props): JSX
return (
<Fragment>
<PageMetadata title={title} />
<PageMetadata title={title} openGraph={{}} twitter={{}} />
<PageMainContent>
<ItemHistoryScreenLayout>
<BackgroundImage />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment