[www] meta refactoring
This commit is contained in:
1 parent
a0c6e15459
commit
67f83f51f2
2 files changed
+2
-3
No files matched your search
@@ -24,6 +24,8 @@ const defaultMeta = {
|
||||
title: 'Шлиссельбургская Детская Художественная Школа',
|
||||
description: 'Сайт Шлиссельбургской художественной школы',
|
||||
image: 'https://art.shlisselburg.org/entrance.jpg',
|
||||
imageWidth: 1200,
|
||||
imageHeight: 630,
|
||||
}
|
||||
|
||||
function isActive(path, menuItem) {
|
||||
|
||||
@@ -31,9 +31,6 @@ function getMeta(teacher) {
|
||||
meta.imageWidth = artifact.width
|
||||
meta.imageHeight = artifact.height
|
||||
} catch (error) {
|
||||
meta.image = 'https://art.shlisselburg.org/entrance.jpg'
|
||||
meta.imageWidth = 1200
|
||||
meta.imageHeight = 630
|
||||
}
|
||||
}
|
||||
return meta
|
||||
|
||||
Reference in new issue
Block a user