page title
This commit is contained in:
1 parent
1c65440536
commit
7c3f3542ac
1 file changed
+6
-1
+6
-1
@@ -1,5 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
import Head from 'next/head'
|
||||||
import App from '../src/components/App'
|
import App from '../src/components/App'
|
||||||
import Page from '../src/components/Page'
|
import Page from '../src/components/Page'
|
||||||
import menuModel from '../src/models/menu'
|
import menuModel from '../src/models/menu'
|
||||||
@@ -11,7 +12,10 @@ const Index = (props) => (
|
|||||||
showAuthor={true}
|
showAuthor={true}
|
||||||
menuPadding={true}
|
menuPadding={true}
|
||||||
>
|
>
|
||||||
{/* <pre>{JSON.stringify(props, null, 4)}</pre> */}
|
<Head>
|
||||||
|
<title>{props.title}</title>
|
||||||
|
</Head>
|
||||||
|
|
||||||
<div className={'content content_thin'}>
|
<div className={'content content_thin'}>
|
||||||
<Page
|
<Page
|
||||||
shareable={true}
|
shareable={true}
|
||||||
@@ -32,6 +36,7 @@ Index.getInitialProps = async (ctx) => {
|
|||||||
return {
|
return {
|
||||||
content: page.data,
|
content: page.data,
|
||||||
pageUrl,
|
pageUrl,
|
||||||
|
title: page.title,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user