From 2a658e70984a4283bae2a65436cbc925b0de6c2c Mon Sep 17 00:00:00 2001 From: fatchan Date: Sun, 31 Mar 2019 07:52:11 +0000 Subject: [PATCH] meta head tags on threads to show first file, subject and message substring --- views/pages/thread.pug | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/pages/thread.pug b/views/pages/thread.pug index 6f3d6297..fc0c73df 100644 --- a/views/pages/thread.pug +++ b/views/pages/thread.pug @@ -2,7 +2,12 @@ extends ../layout.pug include ../mixins/post.pug block head - title /#{board._id}/ - #{thread.title} + title /#{board._id}/ - #{thread.subject} + meta(property='og:site_name', value='fatchan') + meta(property='og:title', content=thread.subject) + meta(property='og:url', content='https://fatpeople.lol') + meta(property='og:description', content=thread.message.substring(0,200)) + meta(property='og:image', content=thread.files.length > 0 ? '/img/'+thread.files[0].filename : '') block content a(href='/'+board._id) Back to /#{board._id}/