You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes @skychx you can swizzle the blog post page, it should have a property "rightToc" assigned to it, and you can reuse the Headings comp of the classic theme to render it.
Do you think we should provide this feature out of the box for blog posts too?
Yes @skychx you can swizzle the blog post page, it should have a property "rightToc" assigned to it, and you can reuse the Headings comp of the classic theme to render it.
Do you think we should provide this feature out of the box for blog posts too?
YES! I think this is a very useful feature to clearly show the structure of the article.
Activity
yangshun commentedon May 5, 2020
Swizzle the components.
skychx commentedon Jul 11, 2020
sorry, I don't understand the meaning of "Swizzle the components"。
I read the V2 documentation and it seems that only Docs has TOC, but V1's blog supports TOC
skychx commentedon Jul 11, 2020
skychx commentedon Jul 12, 2020
Finally, I use
change
src/theme/BlogPostPage/index.jsadd the Tocslorber commentedon Jul 13, 2020
Yes @skychx you can swizzle the blog post page, it should have a property "rightToc" assigned to it, and you can reuse the Headings comp of the classic theme to render it.
Do you think we should provide this feature out of the box for blog posts too?
skychx commentedon Jul 14, 2020
YES! I think this is a very useful feature to clearly show the structure of the article.
muhsatrio commentedon Jul 24, 2020
may I shoot PR for adding the "Recent Post" section to v2 docusaurus? I think this feature is still needed, thank you @slorber
slorber commentedon Jul 24, 2020
Recent posts and TOC seems like useful things PR welcome 👌
amy-lei commentedon Aug 10, 2020
I would love to work on the TOC feature! 😃
slorber commentedon Aug 11, 2020
yes @amy-lei thanks