SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Layout parts split in different sections #1307

Closed Bramjetten closed 1 year ago

Bramjetten commented 1 year ago

Add support for different sections for layout parts like so:

CleanShot 2023-09-20 at 10 54 27@2x

Instead of assigning an array to theme.layout_parts, it's also possible to assign a hash:

theme.layout_parts = {
  brand: %w[logo brand_color],
  google_reviews: %w[google_reviews google_rating],
  docs: %w[terms_and_conditions privacy]
}

My proposal is to use I18n to add labels for different sections under the spina.layout.sections key.