From bdf1bd1e8b254ff384cda64e50317996eb2596a6 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Thu, 20 Oct 2022 11:40:10 -0500 Subject: [PATCH] add user page --- client/template.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/template.js b/client/template.js index 6ee7f9d4a..d59b1d29e 100644 --- a/client/template.js +++ b/client/template.js @@ -25,6 +25,14 @@ const template = async function(name, title='', props = {}){ thumbnail : props.brew.thumbnail || null, type : 'article' }); + } else if(props.url.match(/\/user\//)){ + Object.assign(ogMeta, { + siteName : null, + title : `${props.username} - The Homebrewery`, + description : `${props.username}'s user page.`, + thumbnail : null, + type : 'profile' + }); } const ogTags = [];