keystone-design-bootstrap 1.0.45 → 1.0.47
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/package.json
CHANGED
|
@@ -22,6 +22,8 @@ import type { CompanyInformation, Location, NavItem, Service, SiteConfig } from
|
|
|
22
22
|
|
|
23
23
|
export type KeystoneRootLayoutHeaderOverrides = {
|
|
24
24
|
logoHref?: string;
|
|
25
|
+
/** Overrides the title/company name shown in the center of the nav bar (otherwise from business_info) */
|
|
26
|
+
logoText?: string;
|
|
25
27
|
ctaLabel?: string;
|
|
26
28
|
ctaHref?: string;
|
|
27
29
|
secondaryLabel?: string;
|
|
@@ -138,7 +140,10 @@ export async function KeystoneRootLayout(props: {
|
|
|
138
140
|
|
|
139
141
|
const headerOverrides = options?.headerOverrides;
|
|
140
142
|
const headerProps = {
|
|
141
|
-
logo: {
|
|
143
|
+
logo: {
|
|
144
|
+
href: headerOverrides?.logoHref || '/',
|
|
145
|
+
...(headerOverrides?.logoText != null && { text: headerOverrides.logoText }),
|
|
146
|
+
},
|
|
142
147
|
cta_button: {
|
|
143
148
|
label: headerOverrides?.ctaLabel || 'Contact Us',
|
|
144
149
|
href: headerOverrides?.ctaHref || '/contact',
|
|
@@ -163,6 +168,7 @@ export async function KeystoneRootLayout(props: {
|
|
|
163
168
|
companyInformation={companyInformation}
|
|
164
169
|
websitePhotos={websitePhotos}
|
|
165
170
|
props={headerProps}
|
|
171
|
+
logoText={headerOverrides?.logoText}
|
|
166
172
|
/>
|
|
167
173
|
{children}
|
|
168
174
|
<FooterHome
|