keystone-design-bootstrap 1.0.45 → 1.0.46

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keystone-design-bootstrap",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Keystone Design Bootstrap - Sections, Elements, and Theme System for customer websites",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -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: { href: headerOverrides?.logoHref || '/' },
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',