1
0
Fork 0

wip(org): Added blog post pages

This commit is contained in:
Joost De Cock 2022-05-30 15:36:39 +02:00
parent 8b7ea76325
commit e47f47cf99
5 changed files with 142 additions and 24 deletions

View file

@ -10,7 +10,7 @@ import rendertest from '@freesewing/rendertest'
import tutorial from '@freesewing/tutorial'
const mdxCustomComponents = (app, t) => ({
const mdxCustomComponents = (app=false) => ({
// Custom components
Example: props => <Example
{...props}

View file

@ -8,6 +8,8 @@ const currentChildren = current => Object.values(order(current))
.filter(entry => (typeof entry === 'object'))
const ReadMore = props => {
// Don't bother if we don't have the navigation tree in app
if (!props.app) return null
const root = get(props.app.navigation, props.slug.split('/'))
const list = []