documents title

This commit is contained in:
tmshv committed 2019-08-02 16:23:12 +03:00
1 parent 3da16a0a86
commit b0542dfe80
1 file changed
+6 -1
+6 -1
View File
@@ -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 menuModel from '../src/models/menu' import menuModel from '../src/models/menu'
import { buildMenu } from '../src/lib/menu' import { buildMenu } from '../src/lib/menu'
@@ -12,7 +13,6 @@ import { unique } from '../src/utils/common'
function getDocumentsMeta() { function getDocumentsMeta() {
return { return {
title: 'Документы',
description: 'Документы Шлиссельбургской ДХШ', description: 'Документы Шлиссельбургской ДХШ',
} }
} }
@@ -104,6 +104,10 @@ const Page = (props) => (
showAuthor={true} showAuthor={true}
menuPadding={true} menuPadding={true}
> >
<Head>
<title>{props.title}</title>
</Head>
<div className="content content_thin"> <div className="content content_thin">
{/* <pre>{JSON.stringify(props, null, 4)}</pre> */} {/* <pre>{JSON.stringify(props, null, 4)}</pre> */}
@@ -129,6 +133,7 @@ Page.getInitialProps = async (ctx) => {
return { return {
collections, collections,
pageUrl, pageUrl,
title: 'Документы',
} }
} }