astro-tractstack 2.0.0-rc.4 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +226 -97
- package/bin/create-tractstack.js +1 -1
- package/dist/index.js +8 -0
- package/package.json +2 -2
- package/templates/brand/og.png +0 -0
- package/templates/brand/oglogo.png +0 -0
- package/templates/css/frontend.css +1 -3519
- package/templates/src/layouts/Layout.astro +3 -3
- package/utils/inject-files.ts +8 -0
|
@@ -63,9 +63,9 @@ const tenantId =
|
|
|
63
63
|
|
|
64
64
|
// Social media and SEO setup
|
|
65
65
|
const brandConfig = propBrandConfig || (await getBrandConfig(tenantId));
|
|
66
|
-
const defaultFavIcon = brandConfig.FAVICON || `/favicon.ico`;
|
|
67
|
-
const defaultSocialImageURL = ogImage || brandConfig.OG || `/og.png`;
|
|
68
|
-
const defaultSocialLogoURL = brandConfig.OGLOGO || `/oglogo.png`;
|
|
66
|
+
const defaultFavIcon = brandConfig.FAVICON || `/brand/favicon.ico`;
|
|
67
|
+
const defaultSocialImageURL = ogImage || brandConfig.OG || `/brand/og.png`;
|
|
68
|
+
const defaultSocialLogoURL = brandConfig.OGLOGO || `/brand/oglogo.png`;
|
|
69
69
|
const defaultSocialTitle =
|
|
70
70
|
typeof title === `string` && title
|
|
71
71
|
? title
|
package/utils/inject-files.ts
CHANGED
|
@@ -1530,6 +1530,14 @@ export async function injectTemplateFiles(
|
|
|
1530
1530
|
src: resolve('../templates/brand/static.jpg'),
|
|
1531
1531
|
dest: 'public/static.jpg',
|
|
1532
1532
|
},
|
|
1533
|
+
{
|
|
1534
|
+
src: resolve('../templates/brand/og.png'),
|
|
1535
|
+
dest: 'public/brand/og.png',
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
src: resolve('../templates/brand/oglogo.png'),
|
|
1539
|
+
dest: 'public/brand/oglogo.png',
|
|
1540
|
+
},
|
|
1533
1541
|
{
|
|
1534
1542
|
src: resolve('../templates/brand/favicon.ico'),
|
|
1535
1543
|
dest: 'public/brand/favicon.ico',
|