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,
|
||||
title: item.title,
|
||||
teaser: item.description,
|
||||
slug: args.params.slug,
|
||||
slug: `/universe/category/${args.params.slug}`,
|
||||
isIndex: false,
|
||||
data: { ...item, isCategory: true },
|
||||
section: 'universe',
|
||||
|
|
|
@ -4,7 +4,7 @@ import Layout from '../../src/templates'
|
|||
const Universe = () => {
|
||||
return (
|
||||
<Layout
|
||||
slug={['universe']}
|
||||
slug={'/universe'}
|
||||
section="universe"
|
||||
sectionTitle={recordSections.universe.title}
|
||||
theme={recordSections.universe.theme}
|
||||
|
|
|
@ -30,7 +30,7 @@ export const getStaticProps: GetStaticProps<PropsPageBase, ParsedUrlQuery> = asy
|
|||
id: resource.id,
|
||||
title: resource.title || resource.id,
|
||||
teaser: resource.slogan || null,
|
||||
slug: args.params.slug,
|
||||
slug: `/universe/project/${args.params.slug}`,
|
||||
isIndex: false,
|
||||
data: { ...resource, isProject: true },
|
||||
section: 'universe',
|
||||
|
|
Loading…
Reference in New Issue
Block a user