meta update
This commit is contained in:
1 parent
7d9f642b12
commit
1f0f3374c4
2 files changed
+8
-3
No files matched your search
+7
-2
@@ -19,6 +19,12 @@ const defaultOptions = {
|
|||||||
menuPadding: true,
|
menuPadding: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const defaultMeta = {
|
||||||
|
title: 'Шлиссельбургская Детская Художественная Школа',
|
||||||
|
description: 'Сайт Шлиссельбургской художественной школы',
|
||||||
|
image: 'https://art.shlisselburg.org/entrance.jpg',
|
||||||
|
}
|
||||||
|
|
||||||
function isActive(path, menuItem) {
|
function isActive(path, menuItem) {
|
||||||
return isEqualPate(path, menuItem.url, true)
|
return isEqualPate(path, menuItem.url, true)
|
||||||
}
|
}
|
||||||
@@ -83,9 +89,8 @@ async function render(path, data, meta, options = {}) {
|
|||||||
const template = handlebars.compile(source)
|
const template = handlebars.compile(source)
|
||||||
|
|
||||||
const metaData = {
|
const metaData = {
|
||||||
|
...defaultMeta,
|
||||||
...meta,
|
...meta,
|
||||||
description: 'Сайт Шлиссельбургской художественной школы',
|
|
||||||
image: 'https://art.shlisselburg.org/entrance.jpg',
|
|
||||||
url: `https://art.shlisselburg.org${path}`,
|
url: `https://art.shlisselburg.org${path}`,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ function getCollectiveMeta() {
|
|||||||
function getMeta(teacher) {
|
function getMeta(teacher) {
|
||||||
return {
|
return {
|
||||||
title: teacher.name,
|
title: teacher.name,
|
||||||
description: 'Преподаватель Шлиссельбургской ДХШ',
|
description: teacher.name,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user