Skip to content

[Feat]: Add Table of Contents (TOC) support for blog posts #14

@JuyaoHuang

Description

@JuyaoHuang

First of all, thank you for creating this awesome Astro template. I've been using it for my blog and I really like it.

Describe
I noticed that the current template does not include a Table of Contents (TOC) for blog posts. When writing long articles, it becomes difficult for readers to navigate through the content without a summary of headings.

What have done
I have implemented a TOC component that automatically generates a list of links based on the markdown headings. It improves the reading experience significantly for longer posts.

Additional context
I have already finished the implementation in my local fork and everything works well. I would love to submit a Pull Request to share this feature with the community.

Let me know if you are interested!

Example
Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions