test sidebar table of contents

This is a test post to verify the sidebar table of contents functionality.

Introduction

This section introduces the sidebar TOC feature. The sidebar should stay visible as you scroll through the content.

What is Sidebar TOC?

A sidebar TOC provides persistent navigation that shows the current section you’re reading.

Features

The sidebar TOC has several important features:

Automatic Generation

The TOC is automatically generated from your headings (h2, h3, etc.).

Scroll Highlighting

The current section is highlighted in the sidebar as you scroll through the content.

Responsive Design

On mobile devices, the sidebar moves to the top of the page for better usability.

How to Use

To enable sidebar TOC, add this to your front matter:

toc:
  sidebar: true

Left vs Right Sidebar

You can also position the sidebar on the right:

toc:
  sidebar: right

Benefits

Improved Navigation

Users can quickly jump to any section of your post.

Better User Experience

Long posts are easier to navigate with a persistent TOC.

Professional Appearance

Sidebar TOCs give your content a documentation-style look.

Conclusion

The sidebar TOC feature enhances the readability and navigation of long blog posts and project pages.

Next Steps

Try enabling sidebar TOC on your own posts to see the improvement in user experience.




    Enjoy Reading This Article?

    Here are some more articles you might like to read next:

  • Third-Party Libraries Demo
  • how to write a blog post