mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-18 01:22:43 +00:00
small fixes
This commit is contained in:
@@ -14,15 +14,15 @@ const template = async function(name, title='', props = {}){
|
|||||||
siteName : null,
|
siteName : null,
|
||||||
title : props.brew.title || 'Homebrewery - Untitled Brew',
|
title : props.brew.title || 'Homebrewery - Untitled Brew',
|
||||||
description : props.brew.description || 'No description.',
|
description : props.brew.description || 'No description.',
|
||||||
thumbnail : props.brew.thumbnail || null,
|
image : props.brew.thumbnail || null,
|
||||||
type : 'article'
|
type : 'article'
|
||||||
});
|
});
|
||||||
} else if(props.url.match(/\/print\/|\/source\//)){
|
} else if(props.url.match(/\/print\/|\/source\//)){
|
||||||
Object.assign(ogMeta, {
|
Object.assign(ogMeta, {
|
||||||
siteName : null,
|
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.',
|
description : props.brew.description || 'No description.',
|
||||||
thumbnail : props.brew.thumbnail || null,
|
image : props.brew.thumbnail || null,
|
||||||
type : 'article'
|
type : 'article'
|
||||||
});
|
});
|
||||||
} else if(props.url.match(/\/user\//)){
|
} else if(props.url.match(/\/user\//)){
|
||||||
@@ -30,7 +30,7 @@ const template = async function(name, title='', props = {}){
|
|||||||
siteName : null,
|
siteName : null,
|
||||||
title : `${props.username} - The Homebrewery`,
|
title : `${props.username} - The Homebrewery`,
|
||||||
description : `${props.username}'s user page.`,
|
description : `${props.username}'s user page.`,
|
||||||
thumbnail : null,
|
image : null,
|
||||||
type : 'profile'
|
type : 'profile'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user