[www] meta refactoring

This commit is contained in:
Roman Timashev committed 2017-10-25 02:01:41 +03:00
1 parent a0c6e15459
commit 67f83f51f2
2 files changed
+2 -3

No files matched your search

+2
View File
@@ -24,6 +24,8 @@ const defaultMeta = {
title: 'Шлиссельбургская Детская Художественная Школа', title: 'Шлиссельбургская Детская Художественная Школа',
description: 'Сайт Шлиссельбургской художественной школы', description: 'Сайт Шлиссельбургской художественной школы',
image: 'https://art.shlisselburg.org/entrance.jpg', image: 'https://art.shlisselburg.org/entrance.jpg',
imageWidth: 1200,
imageHeight: 630,
} }
function isActive(path, menuItem) { function isActive(path, menuItem) {
-3
View File
@@ -31,9 +31,6 @@ function getMeta(teacher) {
meta.imageWidth = artifact.width meta.imageWidth = artifact.width
meta.imageHeight = artifact.height meta.imageHeight = artifact.height
} catch (error) { } catch (error) {
meta.image = 'https://art.shlisselburg.org/entrance.jpg'
meta.imageWidth = 1200
meta.imageHeight = 630
} }
} }
return meta return meta