mirror of
https://github.com/calofmijuck/blog.git
synced 2025-12-06 14:53:50 +00:00
build: remove toc-status
This commit is contained in:
@@ -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 %}
|
|
||||||
@@ -9,7 +9,7 @@ tail_includes:
|
|||||||
- comments
|
- comments
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include lang.html %} {% include toc-status.html %}
|
{% include lang.html %}
|
||||||
|
|
||||||
<article class="px-1" data-toc="{{ enable_toc }}">
|
<article class="px-1" data-toc="{{ enable_toc }}">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
Reference in New Issue
Block a user