Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for Table of Contents #88

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

NTBBloodbath
Copy link
Owner

Usage example (taken from the Tailwind theme I'm cooking):

{% if metadata.toc %}
  {% set toc_html = generate_toc(toc=metadata.toc, list_type="ol") %}
  <h3>Table of Contents</h3>
  <nav class="toc">
    {{ toc_html | safe }}
  </nav>
{% endif %}

image

@NTBBloodbath NTBBloodbath added the enhancement New feature or request label Mar 4, 2025
@NTBBloodbath NTBBloodbath merged commit be49bec into master Mar 4, 2025
4 checks passed
@NTBBloodbath NTBBloodbath deleted the push-toumossqozrl branch March 4, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant