ferst-core 0.14.0 → 0.15.0
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/cms/config.template.yml +11 -0
- package/components/SiteHeader.astro +1360 -1273
- package/components/recipes/Book.astro +39 -4
- package/components/recipes/Hero.astro +536 -533
- package/content/schemas.ts +31 -0
- package/integration.mjs +263 -249
- package/layouts/Base.astro +21 -2
- package/lib/book.ts +94 -1
- package/lib/image-size.mjs +73 -0
- package/package.json +1 -1
package/cms/config.template.yml
CHANGED
|
@@ -81,6 +81,17 @@ collections:
|
|
|
81
81
|
- { name: secondaryLogoLight, label: Footer logo (light), widget: image, required: false }
|
|
82
82
|
- { name: secondaryLogoDark, label: Footer logo (dark), widget: image, required: false }
|
|
83
83
|
- { name: favicon, label: Browser icon, widget: image, required: false, hint: "A square image (PNG or SVG), at least 48 x 48. Leave blank to use the header logo if it's square, or the site's initial in its brand colour." }
|
|
84
|
+
- name: header
|
|
85
|
+
label: Header logo layout
|
|
86
|
+
widget: object
|
|
87
|
+
required: false
|
|
88
|
+
collapsed: true
|
|
89
|
+
hint: How big the header logo is, and whether it hangs below the bar over the top of the page (good for a round badge).
|
|
90
|
+
fields:
|
|
91
|
+
- { name: size, label: Size, widget: select, required: false, default: standard, options: [{ label: "Standard", value: standard }, { label: "Large (about twice)", value: large }, { label: "Extra large (about four times)", value: xl }] }
|
|
92
|
+
- { name: placement, label: Placement, widget: select, required: false, default: inline, options: [{ label: "Inside the bar", value: inline }, { label: "Hanging below the bar", value: overhang }] }
|
|
93
|
+
- { name: shrinkOnScroll, label: Tuck into the bar when scrolling, widget: boolean, required: false, default: true, hint: "Hanging logos only. Off keeps it hanging while visitors read." }
|
|
94
|
+
- { name: shadow, label: Soft shadow, widget: boolean, required: false, default: false, hint: "Helps a dark round badge stand out from a dark header." }
|
|
84
95
|
|
|
85
96
|
- name: navbar
|
|
86
97
|
label: Navigation
|