Skip to content
Discussion options

You must be logged in to vote

You can achieve both of these in Docusaurus, but they require working in two different areas: theme swizzling for the blog layout, and a small client-side customization for the loading spinner.

1. Redesigning /blog with TailwindCSS-style cards

Docusaurus blog pages are controlled by the theme component:
@docusaurus/theme-classic

To customize the blog list layout:

  • Swizzle the blog list component:

    npx docusaurus swizzle @docusaurus/theme-classic BlogListPage
  • This will create an override in:

    src/theme/BlogListPage/
    

Inside that file, you’ll find the layout rendering logic. Replace the default post list rendering with a card layout similar to Flowbite.

You can adapt their card structure…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RudraSen2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants