Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout parts split in different sections #1307

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

Bramjetten
Copy link
Contributor

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.

@Bramjetten Bramjetten merged commit a3ecafa into SpinaCMS:main Sep 20, 2023
1 check passed
@Bramjetten Bramjetten deleted the layoutsections branch September 20, 2023 09:37
@Bramjetten Bramjetten mentioned this pull request Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants