Merge pull request #3054 from element-hq/robin/og-brand

Use the configured brand name in OpenGraph tags
This commit is contained in:
Robin
2025-03-05 12:09:25 -05:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -8,26 +8,26 @@
name="viewport" name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/> />
<title><%- title %></title> <title><%- brand %></title>
<script> <script>
window.global = window; window.global = window;
</script> </script>
<!-- Open graph meta tags --> <!-- Open graph meta tags -->
<meta property="og:title" content="<%- title %>" /> <meta property="og:title" content="<%- brand %>" />
<meta <meta
property="og:description" property="og:description"
content="You're invited to join a call on Element Call" content="You're invited to join a call on <%- brand %>"
/> />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:image" content="favicon.png" /> <meta property="og:image" content="favicon.png" />
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%- title %>" /> <meta name="twitter:title" content="<%- brand %>" />
<meta <meta
name="twitter:description" name="twitter:description"
content="You're invited to join a call on Element Call" content="You're invited to join a call on <%- brand %>"
/> />
<meta name="twitter:image" content="favicon.png" /> <meta name="twitter:image" content="favicon.png" />
</head> </head>

View File

@@ -29,7 +29,7 @@ export default defineConfig(({ mode }) => {
}), }),
htmlTemplate.default({ htmlTemplate.default({
data: { data: {
title: env.VITE_PRODUCT_NAME || "Element Call", brand: env.VITE_PRODUCT_NAME || "Element Call",
}, },
}), }),