diff --git a/_layouts/website/page.html b/_layouts/website/page.html
index 9e81fccd56b2aa0fd68eb883fefda2f52a41aa46..9a54299d3605480153a86a080c8529a2bb002f35 100644
--- a/_layouts/website/page.html
+++ b/_layouts/website/page.html
@@ -53,7 +53,7 @@
{% elif not loop.first %}
{% endif %}
- {{ articles(part.articles, file) }}
+ {{ articles(part.articles, file, config) }}
{% endfor %}
@@ -112,7 +112,7 @@
{% endblock %}
-{% macro articles(_articles, file) %}
+{% macro articles(_articles, file, config) %}
{% for article in _articles %}
{% if article.path %}
@@ -122,7 +122,7 @@
{% else %}
{% endif %}
- {% if article.level != "0" %}
+ {% if article.level != "0" and config.pluginsConfig['theme-default'].showLevel %}
{{ article.level }}.
{% endif %}
{{ article.title }}
@@ -134,7 +134,7 @@
{% if article.articles.length > 0 %}
- {{ articles(article.articles, file) }}
+ {{ articles(article.articles, file, config) }}
{% endif %}
diff --git a/package.json b/package.json
index 47d946734399e50ebc72f6c3c1c8feaef8d1891a..50be9e3049274776aa64f8bde837537abfd6363a 100644
--- a/package.json
+++ b/package.json
@@ -68,6 +68,11 @@
"default": "styles/print.css"
}
}
+ },
+ "showLevel": {
+ "type": "bool",
+ "title": "Show level indicator in TOC",
+ "default": false
}
}
}