content: /* eslint-disable */
  import React from 'react'
  import Helmet from 'react-helmet'
  import { config } from 'config'
  
  import Article from '../src/layouts/Article'
  import Page from '../src/layouts/Page'
  
  module.exports = React.createClass({
    propTypes () {
      return {
        router: React.PropTypes.object,
      }
    },
    render () {
      const { page } = this.props.route
      const { layout } = page.data
      if (layout === 'page') {
        return <Page {...this.props} />
      }
  
      return (
        <Article {...this.props} />
      )
    },
  })
  