0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

add user page

This commit is contained in:
Gazook89
2022-10-20 11:40:10 -05:00
parent df6d372243
commit bdf1bd1e8b

View File

@@ -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 = [];