import get from 'lodash.get' import orderBy from 'lodash.orderby' import Link from 'next/link' // Helper method to filter out the real children const order = obj => orderBy(obj, ['__order', '__title'], ['asc', 'asc']) const currentChildren = current => Object.values(order(current)) .filter(entry => (typeof entry === 'object')) const ReadMore = props => { const root = get(props.app.navigation, props.slug.split('/')) const list = [] for (const page of currentChildren(root)) { list.push(
  • {page.__title} {props.recurse && }
  • ) } return } export default ReadMore