import NProgress from 'nprogress'; import Head from 'next/head'; import Router from 'next/router'; import Article from './article'; Router.onRouteChangeStart = () => NProgress.start(); Router.onRouteChangeComplete = () => NProgress.done(); Router.onRouteChangeError = () => NProgress.done(); export default ({ children, title = '' }) => (
{title}
{children}
);