gallery title
This commit is contained in:
1 parent
b0542dfe80
commit
1c65440536
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 Album from '../src/components/Album'
|
// import Album from '../src/components/Album'
|
||||||
import Article from '../src/components/Article'
|
import Article from '../src/components/Article'
|
||||||
@@ -11,7 +12,6 @@ const albumsByYear = splitBy(album => new Date(album.date).getFullYear())
|
|||||||
|
|
||||||
function getMeta() {
|
function getMeta() {
|
||||||
return {
|
return {
|
||||||
title: 'Галерея',
|
|
||||||
description: 'Галерея работ учащихся Шлиссельбургской Детской Художественной Школы'
|
description: 'Галерея работ учащихся Шлиссельбургской Детской Художественной Школы'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,6 +56,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">
|
||||||
<Article
|
<Article
|
||||||
// title={meta.title}
|
// title={meta.title}
|
||||||
@@ -84,6 +88,7 @@ Page.getInitialProps = async (ctx) => {
|
|||||||
return {
|
return {
|
||||||
collections: [...albumCollections.entries()],
|
collections: [...albumCollections.entries()],
|
||||||
pageUrl,
|
pageUrl,
|
||||||
|
title: 'Галерея',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user