Replies: 6 comments
-
It would also be useful to have the option of having a full width footer for doc layouts. |
Beta Was this translation helpful? Give feedback.
-
On the Salt site we also extracted the page title so we could apply some custom styling so maybe this is something that would be useful to document e.g.
|
Beta Was this translation helpful? Give feedback.
-
Pros
Cons
Questions
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In a page you can reference meta data with curly brackets so this should work (and will be documented)
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The Frame
The frame can be thought of the components that side around the main page content. The furniture so to speak. For Mosaic this includes:
How to set a Page Layout
It is set in the frontmatter of a page using the
layout
field. If no layout is provided then theFullWidth
layout is used by default.Existing Layouts
The table below details he existing layouts and what frame components they use.
Observations
DetailContentOnly
layout.Edit
/FulllWidth
/Landing
are very similar.ProductDiscover
andDetailContentOnly
are identical.ProductPreview
andLanding
are identical.Future Design
1. Built in Header
Build in the Header component into the Base Layout. It is always needed and I can't see a design that wouldn't have the header in it. This simplifies the logic for all layouts.
2. Frame frontmatter
Instead of stating the name of the layout in the frontmatter, you can choose to enable/disable frame components. This gives users flexibility to show/hide the frame components at will.
If you choose to have
sidebar:false
andtoc:false
then the page content is full width.There is no option to disable a header.
Benefits
ProductDiscover
andProductPreview
layout.Downsides
Beta Was this translation helpful? Give feedback.
All reactions