0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 02:02:43 +00:00

small fixes

This commit is contained in:
Gazook89
2022-10-20 11:46:53 -05:00
parent bdf1bd1e8b
commit 5c3f7b1b82

View File

@@ -14,15 +14,15 @@ const template = async function(name, title='', props = {}){
siteName : null,
title : props.brew.title || 'Homebrewery - Untitled Brew',
description : props.brew.description || 'No description.',
thumbnail : props.brew.thumbnail || null,
image : props.brew.thumbnail || null,
type : 'article'
});
} else if(props.url.match(/\/print\/|\/source\//)){
Object.assign(ogMeta, {
siteName : null,
title : `${props.brew.title} - ${props.url.match(/\/print\/|\/source\//)}` || 'Homebrewery - Untitled Brew',
title : props.brew.title ? `${props.brew.title} - ${props.url.match(/\/print\/|\/source\//)}` : 'Homebrewery - Untitled Brew',
description : props.brew.description || 'No description.',
thumbnail : props.brew.thumbnail || null,
image : props.brew.thumbnail || null,
type : 'article'
});
} else if(props.url.match(/\/user\//)){
@@ -30,7 +30,7 @@ const template = async function(name, title='', props = {}){
siteName : null,
title : `${props.username} - The Homebrewery`,
description : `${props.username}'s user page.`,
thumbnail : null,
image : null,
type : 'profile'
});
}