0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 03:02:40 +00:00

Use PUBLIC_ENV variable and localhost thumbnail

This commit is contained in:
G.Ambatte
2021-10-30 19:00:44 +13:00
parent 95f1561f0d
commit 68341bf6a5

View File

@@ -8,8 +8,8 @@ module.exports = async(name, title = '', props = {})=>{
<link href=${`/${name}/bundle.css`} rel='stylesheet' />
<link rel="icon" href="/assets/homebrew/favicon.ico" type="image/x-icon" />
<meta property="og:title" content="${props.brew?.title ? props.brew.title : 'Homebrewery - Untitled Brew'}">
<meta property="og:url" content="https://homebrewery.naturalcrit.com${props.brew?.shareId ? `/share/${props.brew.shareId}` : '/new'}">
<meta property="og:image" content="${props.brew?.thumbnail ? props.brew.thumbnail : 'https://i.imgur.com/FwRuhv7.png'}">
<meta property="og:url" content="${process.env.PUBLIC_URL}/${props.brew?.shareId ? `share/${props.brew.shareId}` : ''}">
<meta property="og:image" content="${props.brew?.thumbnail ? props.brew.thumbnail : `${process.env.PUBLIC_URL}/thumbnail.png`}">
<meta property="og:description" content="${props.brew?.description ? props.brew.description : 'No description.'}">
<meta property="og:site_name" content="The Homebrewery - Make your Homebrew content look legit!">
<meta property="og:type" content="website">