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"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<title><%- title %></title>
<title><%- brand %></title>
<script>
window.global = window;
</script>
<!-- Open graph meta tags -->
<meta property="og:title" content="<%- title %>" />
<meta property="og:title" content="<%- brand %>" />
<meta
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:image" content="favicon.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%- title %>" />
<meta name="twitter:title" content="<%- brand %>" />
<meta
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" />
</head>

View File

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