forked from deepStateMirrors/tabi
✨ feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex. - Allow custom ToC placement with shortcode or "<!-- toc -->" marker. - Increase max depth for ToC to 4. - Update Documentation for the above features. - Move ToC generation to a macro file.
This commit is contained in:
parent
a6046cd9d7
commit
07ceddcc00
7 changed files with 296 additions and 58 deletions
|
@ -7,6 +7,7 @@
|
|||
{% import "macros/paginate.html" as macros_paginate %}
|
||||
{% import "macros/format_date.html" as macros_format_date %}
|
||||
{% import "macros/add_comments.html" as macros_add_comments %}
|
||||
{% import "macros/table_of_contents.html" as macros_toc %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ lang }}" {% if config.extra.default_theme -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue