Add 'twitter:creator' meta data in user pages (#3618)

* Update user.pug

* Update user.pug

* Update note.pug

* Update user.pug

* Update note.pug

* Update note.pug
This commit is contained in:
Acid Chicken (硫酸鶏) 2018-12-16 08:49:38 +09:00 committed by syuilo
parent b7c5c71c6f
commit a0839de38f
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ block og
block meta
meta(name='twitter:card' content='summary')
if user.twitter
meta(name='twitter:creator' content=`@${user.twitter.screenName}`)
if note.prev
link(rel='prev' href=`${config.url}/notes/${note.prev}`)
if note.next

View File

@ -21,6 +21,9 @@ block og
block meta
meta(name='twitter:card' content='summary')
if user.twitter
meta(name='twitter:creator' content=`@${user.twitter.screenName}`)
if !user.host
link(rel='alternate' href=`${config.url}/users/${user._id}` type='application/activity+json')
if user.uri