+ Meta, OG, Schema

This commit is contained in:
tmshv committed 2017-05-21 03:24:40 +03:00
1 parent d016b5e6f9
commit 5377807daa
2 files changed
+55 -12

No files matched your search

+9 -1
View File
@@ -63,8 +63,16 @@ module.exports = function () {
const source = await readFile(config.viewMain, 'utf-8')
const template = handlebars.compile(source)
const title = page.title
const meta = {
title,
description: title,
image: 'https://art.shlisselburg.org/entrance.jpg',
url: `https://art.shlisselburg.org${path}`,
}
ctx.type = 'text/html'
ctx.body = template({content})
ctx.body = template({content, title, meta})
} else {
ctx.status = 404
}