OGP向けにインスタンスのバナー画像を提供するように
This commit is contained in:
parent
9ab34c2301
commit
be1125dcb9
10 changed files with 28 additions and 82 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue