OGP向けにインスタンスのバナー画像を提供するように

This commit is contained in:
syuilo 2018-12-15 23:19:04 +09:00
parent 9ab34c2301
commit be1125dcb9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
10 changed files with 28 additions and 82 deletions

View file

@ -1,4 +1,4 @@
extends ../../../../src/client/app/base
extends ./base
block vars
- const user = note.user;
@ -11,14 +11,16 @@ block title
block desc
meta(name='description' content= summary)
block meta
meta(name='twitter:card' content='summary')
block og
meta(property='og:type' content='article')
meta(property='og:title' content= title)
meta(property='og:description' content= summary)
meta(property='og:url' content= url)
meta(property='og:image' content= user.avatarUrl)
block meta
meta(name='twitter:card' content='summary')
if note.prev
link(rel='prev' href=`${config.url}/notes/${note.prev}`)
if note.next