2
0

feat(pages): add gallery section to landing page templates

Add configurable gallery section that displays images from repository's .gallery folder on landing pages. Includes settings for enabled/disabled, headline, subheadline, max images (default 6), and grid columns (default 3). Reads captions from gallery.json metadata. Implements gallery rendering in all four page templates (bold-marketing, minimalist-docs, open-source-hero, saas-conversion). Integrates with existing gallery management feature.
This commit is contained in:
2026-03-15 22:54:11 -04:00
parent fc86952bf4
commit 679810687f
10 changed files with 263 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ type LandingConfig struct {
// Blog section
Blog BlogSectionConfig `yaml:"blog,omitempty"`
// Gallery section
Gallery GallerySectionConfig `yaml:"gallery,omitempty"`
// Navigation visibility
Navigation NavigationConfig `yaml:"navigation,omitempty"`
@@ -196,6 +199,15 @@ type BlogSectionConfig struct {
CTAButton CTAButton `yaml:"cta_button,omitempty"` // "View All Posts" link
}
// GallerySectionConfig represents gallery section settings on the landing page
type GallerySectionConfig struct {
Enabled bool `yaml:"enabled,omitempty"`
Headline string `yaml:"headline,omitempty"`
Subheadline string `yaml:"subheadline,omitempty"`
MaxImages int `yaml:"max_images,omitempty"` // default 6
Columns int `yaml:"columns,omitempty"` // grid columns, default 3
}
// NavigationConfig controls which built-in navigation links appear in the header and footer
type NavigationConfig struct {
ShowDocs bool `yaml:"show_docs,omitempty"`