-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(theme): Added two slots for content #2139
Conversation
Allows for some extra theming abilities, such as a wide header for a page.
Moved the slots into the page and docs components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the docs too (docs/guide/extending-default-theme.md)
Allow pushing the aside down to make room for the content-before if needed
Code looks fine to me, but do you have any other suggestions for slot name? Maybe |
Good point on the naming; Could make two separate ones |
Yeah let's do that 👍 |
@@ -65,6 +68,9 @@ provide('hero-image-slot-exists', heroImageSlotExists) | |||
<template #doc-footer-before><slot name="doc-footer-before" /></template> | |||
<template #doc-before><slot name="doc-before" /></template> | |||
<template #doc-after><slot name="doc-after" /></template> | |||
<template #doc-top><slot name="doc-top" /></template> | |||
<template #doc-bottom><slot name="doc-bottom" /></template> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows for some extra theming abilities, such as a wide header for a page.
Hope you will consider this super simple PR. These two slots will allow for some extra customization across the theme regardless of the content type.