mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-06-02 04:54:35 +01:00
14 lines
350 B
Markdown
14 lines
350 B
Markdown
---
|
|
title: Hide short Table of Contents
|
|
tags:
|
|
- Mkdocs
|
|
---
|
|
|
|
Some of my notes don't have headings. Others have barely any. However, the Table of Contents area takes up a large area of screen for no reason.
|
|
|
|
This hook only shows the Table of Contents area when there are more than 4 headings (at any level).
|
|
|
|
```python
|
|
{! ../hooks/hide_toc.py !}
|
|
```
|