build: remove toc-status

This commit is contained in:
2024-11-12 23:07:58 +09:00
parent de3c6a1d4e
commit 78691732a8
2 changed files with 1 additions and 11 deletions

View File

@@ -1,10 +0,0 @@
{% comment %}
Determine TOC state and return it through variable "enable_toc"
{% endcomment %}
{% assign enable_toc = false %}
{% if site.toc and page.toc %}
{% if page.content contains '<h2' or page.content contains '<h3' %}
{% assign enable_toc = true %}
{% endif %}
{% endif %}

View File

@@ -9,7 +9,7 @@ tail_includes:
- comments
---
{% include lang.html %} {% include toc-status.html %}
{% include lang.html %}
<article class="px-1" data-toc="{{ enable_toc }}">
<header>