1
0
Fork 0

chore: Adapt sites to recent changes

This commit is contained in:
Joost De Cock 2022-06-17 12:02:09 +02:00
parent 147920daeb
commit 43ee0f1790
392 changed files with 1269 additions and 1190 deletions

View file

@ -0,0 +1,12 @@
import PageLink from './page-link'
import get from 'lodash.get'
import useApp from 'site/hooks/useApp'
const DocsLink = ({ slug }) => {
const app = useApp()
return <PageLink href={slug} txt={get(app.navigation, [...slug.split('/'), '__title'])} />
}
export default DocsLink