Skip to content

Commit 2bc9b99

Browse files
committed
Add tenant meta title option
1 parent 44e3962 commit 2bc9b99

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ commtrackr.init({ // Initialize CommTracker with configurations
4343
tenant: {
4444
slug: 'commtrackr', // Unique identifier for the tenant
4545
name: 'CommTrackr', // Name of the tenant
46+
metaTitle: 'CommTrackr', // Name of the tenant for meta title tags
4647
description: 'Easily plan, manage, and track client commissions.', // Description of the tenant
4748
logo: 'http://localhost:3000/commtrackr/logo.png', // Tenant logo image
4849
themeColor: '#ffffff', // Tenant theme color

frontend/pages/head.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
<head>
66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title><%= title %><%= title.length ? ' - ' : '' %><%= tenant.name %></title>
8+
<title><%= title %><%= title.length ? ' - ' : '' %><%= tenant.metaTitle %></title>
99
<meta name="description" content="<%= tenant.description %>">
1010
<meta name="keywords" content="commission, commissions">
1111
<meta name="author" content="CommTrackr">
1212
<meta name="theme-color" content="<%= tenant.themeColor %>">
13-
<meta property="og:title" content="<%= title %><%= title.length ? ' - ' : '' %><%= tenant.name %>">
13+
<meta property="og:title" content="<%= title %><%= title.length ? ' - ' : '' %><%= tenant.metaTitle %>">
1414
<meta property="og:description" content="<%= tenant.description %>">
1515
<meta property="og:image" content="<%= tenant.banner %>">
1616
<meta property="og:url" content="<%= tenant.domain %>">
1717
<meta property="og:type" content="website">
1818
<meta name="twitter:card" content="summary_large_image">
19-
<meta name="twitter:title" content="<%= title %><%= title.length ? ' - ' : '' %><%= tenant.name %>">
19+
<meta name="twitter:title" content="<%= title %><%= title.length ? ' - ' : '' %><%= tenant.metaTitle %>">
2020
<meta name="twitter:description" content="<%= tenant.description %>">
2121
<meta name="twitter:image" content="<%= tenant.banner %>">
2222
<link rel="icon" href="<%= tenant.logo %>" type="image/png">

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function init({
3333
tenant: newTenant = {
3434
slug: 'commtrackr',
3535
name: 'CommTrackr',
36+
metaTitle: 'CommTrackr',
3637
description: 'Easily plan, manage, and track client commissions.',
3738
logo: 'http://localhost:3000/logo.png',
3839
banner: 'http://localhost:3000/banner_public.png',
@@ -63,6 +64,7 @@ function init({
6364
tenant = {
6465
slug: 'commtrackr',
6566
name: 'CommTrackr',
67+
metaTitle: 'CommTrackr',
6668
description: 'Easily plan, manage, and track client commissions.',
6769
logo: 'http://localhost:3000/logo.png',
6870
banner: 'http://localhost:3000/banner_public.png',

0 commit comments

Comments
 (0)