diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 01:34:48 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 01:34:48 +0900 |
| commit | 440cf139bb7d5998523ae29c0c5e6394f570bc6c (patch) | |
| tree | 0f090fa9dc9c3a0625a33c380c17b51959684aad /src/server/web/views/note.pug | |
| parent | 2.2.0 (diff) | |
| download | sharkey-440cf139bb7d5998523ae29c0c5e6394f570bc6c.tar.gz sharkey-440cf139bb7d5998523ae29c0c5e6394f570bc6c.tar.bz2 sharkey-440cf139bb7d5998523ae29c0c5e6394f570bc6c.zip | |
メタ情報をレンダリングするように
Diffstat (limited to 'src/server/web/views/note.pug')
| -rw-r--r-- | src/server/web/views/note.pug | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/web/views/note.pug b/src/server/web/views/note.pug new file mode 100644 index 0000000000..3107c0329c --- /dev/null +++ b/src/server/web/views/note.pug @@ -0,0 +1,20 @@ +extends ../../../../src/client/app/base + +block vars + - const user = note.user; + - const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`; + - const url = `${config.url}/notes/${note.id}`; + - const img = user.avatarId ? `${config.drive_url}/${user.avatarId}` : null; + +block title + = `${title} | Misskey` + +block desc + meta(name='description' content= summary) + +block meta + meta(name='twitter:card' content='summary') + meta(property='og:title' content= title) + meta(property='og:description' content= summary) + meta(property='og:url' content= url) + meta(property='og:image' content= img) |