update srebot site embed stuff (#1253)
This commit is contained in:
@@ -826,8 +826,18 @@ app.use((req, res, next) => {
|
||||
|
||||
// Routes
|
||||
app.get('/', (req, res) => {
|
||||
const siteUrl = (process.env.PRODUCTION_DOMAIN || 'https://sre.pawjob.us').replace(/\/$/, '');
|
||||
|
||||
res.render('index', {
|
||||
botName: 'Toothless SQB Bot',
|
||||
metaTitle: "Toothless'",
|
||||
metaDescription: 'The Best Squadron Battles Bot.',
|
||||
metaUrl: `${siteUrl}/`,
|
||||
metaImage: `${siteUrl}/images/toothless_match.jpg`,
|
||||
metaImageWidth: 262,
|
||||
metaImageHeight: 262,
|
||||
metaImageAlt: "Toothless'",
|
||||
metaThemeColor: '#90EE90',
|
||||
serverCount: '1,234',
|
||||
userCount: '50,000+',
|
||||
commandCount: '25+'
|
||||
|
||||
+16
-5
@@ -4,10 +4,21 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<title>
|
||||
<%= botName %>
|
||||
</title>
|
||||
<meta name="description" content="<%= botName %> - The Best Squadron Battles Bot.">
|
||||
<title><%= typeof metaTitle !== 'undefined' ? metaTitle : botName %></title>
|
||||
<meta name="description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
|
||||
<meta name="theme-color" content="<%= typeof metaThemeColor !== 'undefined' ? metaThemeColor : '#90EE90' %>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="<%= typeof metaUrl !== 'undefined' ? metaUrl : 'https://sre.pawjob.us/' %>">
|
||||
<meta property="og:title" content="<%= typeof metaTitle !== 'undefined' ? metaTitle : botName %>">
|
||||
<meta property="og:description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
|
||||
<meta property="og:image" content="<%= typeof metaImage !== 'undefined' ? metaImage : 'https://sre.pawjob.us/images/toothless_match.jpg' %>">
|
||||
<meta property="og:image:width" content="<%= typeof metaImageWidth !== 'undefined' ? metaImageWidth : 262 %>">
|
||||
<meta property="og:image:height" content="<%= typeof metaImageHeight !== 'undefined' ? metaImageHeight : 262 %>">
|
||||
<meta property="og:image:alt" content="<%= typeof metaImageAlt !== 'undefined' ? metaImageAlt : botName %>">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="<%= typeof metaTitle !== 'undefined' ? metaTitle : botName %>">
|
||||
<meta name="twitter:description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
|
||||
<meta name="twitter:image" content="<%= typeof metaImage !== 'undefined' ? metaImage : 'https://sre.pawjob.us/images/toothless_match.jpg' %>">
|
||||
<link rel="icon" type="image/png" href="/images/transparent_toothlessssss.png">
|
||||
|
||||
<!-- Preload Critical Resources -->
|
||||
@@ -648,4 +659,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user