collective title
This commit is contained in:
1 parent
b1d8b2483e
commit
69dcb8793a
1 file changed
+6
-6
@@ -1,17 +1,12 @@
|
|||||||
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 CollectiveImage from '../src/components/CollectiveImage'
|
import CollectiveImage from '../src/components/CollectiveImage'
|
||||||
import PersonCard from '../src/components/PersonCard'
|
import PersonCard from '../src/components/PersonCard'
|
||||||
import menuModel from '../src/models/menu'
|
import menuModel from '../src/models/menu'
|
||||||
import { buildMenu } from '../src/lib/menu'
|
import { buildMenu } from '../src/lib/menu'
|
||||||
|
|
||||||
function getMeta(article) {
|
|
||||||
return {
|
|
||||||
title: article.title,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const PersonCardList = ({ children }) => (
|
const PersonCardList = ({ children }) => (
|
||||||
<div className="PersonCardList">
|
<div className="PersonCardList">
|
||||||
{children}
|
{children}
|
||||||
@@ -24,6 +19,10 @@ const Page = (props) => (
|
|||||||
showAuthor={true}
|
showAuthor={true}
|
||||||
menuPadding={true}
|
menuPadding={true}
|
||||||
>
|
>
|
||||||
|
<Head>
|
||||||
|
<title>{props.title}</title>
|
||||||
|
</Head>
|
||||||
|
|
||||||
<div className="content content_semi-wide">
|
<div className="content content_semi-wide">
|
||||||
{!props.image ? null : (
|
{!props.image ? null : (
|
||||||
<CollectiveImage data={props.image} />
|
<CollectiveImage data={props.image} />
|
||||||
@@ -58,6 +57,7 @@ Page.getInitialProps = async (ctx) => {
|
|||||||
persons,
|
persons,
|
||||||
image: resImage.data,
|
image: resImage.data,
|
||||||
pageUrl,
|
pageUrl,
|
||||||
|
title: 'Коллектив',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user