mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 01:22:44 +00:00
add user page
This commit is contained in:
@@ -25,6 +25,14 @@ const template = async function(name, title='', props = {}){
|
|||||||
thumbnail : props.brew.thumbnail || null,
|
thumbnail : props.brew.thumbnail || null,
|
||||||
type : 'article'
|
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 = [];
|
const ogTags = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user