mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Fix slugs
This commit is contained in:
parent
de3e2080b9
commit
e043d61c3e
|
@ -32,7 +32,7 @@ export const getStaticProps: GetStaticProps<PropsPageBase, ParsedUrlQuery> = asy
|
||||||
id: item.id,
|
id: item.id,
|
||||||
title: item.title,
|
title: item.title,
|
||||||
teaser: item.description,
|
teaser: item.description,
|
||||||
slug: args.params.slug,
|
slug: `/universe/category/${args.params.slug}`,
|
||||||
isIndex: false,
|
isIndex: false,
|
||||||
data: { ...item, isCategory: true },
|
data: { ...item, isCategory: true },
|
||||||
section: 'universe',
|
section: 'universe',
|
||||||
|
|
|
@ -4,7 +4,7 @@ import Layout from '../../src/templates'
|
||||||
const Universe = () => {
|
const Universe = () => {
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
slug={['universe']}
|
slug={'/universe'}
|
||||||
section="universe"
|
section="universe"
|
||||||
sectionTitle={recordSections.universe.title}
|
sectionTitle={recordSections.universe.title}
|
||||||
theme={recordSections.universe.theme}
|
theme={recordSections.universe.theme}
|
||||||
|
|
|
@ -30,7 +30,7 @@ export const getStaticProps: GetStaticProps<PropsPageBase, ParsedUrlQuery> = asy
|
||||||
id: resource.id,
|
id: resource.id,
|
||||||
title: resource.title || resource.id,
|
title: resource.title || resource.id,
|
||||||
teaser: resource.slogan || null,
|
teaser: resource.slogan || null,
|
||||||
slug: args.params.slug,
|
slug: `/universe/project/${args.params.slug}`,
|
||||||
isIndex: false,
|
isIndex: false,
|
||||||
data: { ...resource, isProject: true },
|
data: { ...resource, isProject: true },
|
||||||
section: 'universe',
|
section: 'universe',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user