How can I configure custom content in the aside-container within Theme.Layout? #1637
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The If you customize the content, TOC data cannot be generated during compilation, so the |
Beta Was this translation helpful? Give feedback.
-
@Timeless0911 Thank you so much for providing me with another approach. I have successfully achieved the desired effect using |
Beta Was this translation helpful? Give feedback.
The
components
props you current using is usually used to customize HTML elements likeH1
,p
, ...etc.If you customize the content, TOC data cannot be generated during compilation, so the
Aside
is empty. You can simply usebeforeOutline
hook in<Theme.Layout />
or you should Redevelop a custom theme sinceAside
component is a built-in component in Layout.