From a0839de38f2f2189026f8e0b59dd168b267a9aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sun, 16 Dec 2018 08:49:38 +0900 Subject: [PATCH] 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 --- src/server/web/views/note.pug | 3 +++ src/server/web/views/user.pug | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/server/web/views/note.pug b/src/server/web/views/note.pug index 5a5496fff..2d07aff2e 100644 --- a/src/server/web/views/note.pug +++ b/src/server/web/views/note.pug @@ -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 diff --git a/src/server/web/views/user.pug b/src/server/web/views/user.pug index 71c03d505..7810a8b9b 100644 --- a/src/server/web/views/user.pug +++ b/src/server/web/views/user.pug @@ -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