Merge pull request #3054 from element-hq/robin/og-brand
Use the configured brand name in OpenGraph tags
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user