-
Hugo Trentesaux authored
other option is to add [toc] tag directly inside content
Hugo Trentesaux authoredother option is to add [toc] tag directly inside content
section.html 1.02 KiB
{% extends "index.html" %}
{% block title %}<title>Duniter | {{section.title}}</title>{% endblock title %}
{% block description %}<meta name="description" content="{{ section.description }}">{% endblock description %}
{% block keywords %}{% if section.taxonomies.tags %}<meta name="keywords" content="
{%- for tag in section.taxonomies.tags %}{{tag}},{% endfor %}">{% endif %}{% endblock keywords %}
{% block extrahead %}{% if section.extra.katex %}{{ macros::katex() }}{% endif %}{% endblock extrahead %}
{% block content %}
<main class="page w3-container w3-content w3-padding-64">
{# ===== content ===== #}
<div class="breadcrumb">{{ macros::breadcrumb(path=section.components | safe) }}/
{{ macros::sub(section=section | safe) }}</div>
{#{ macros::taxonomies(taxonomies=section.taxonomies) }#}
{% if section.extra.auto_toc %}{{ macros::toc(toc=section.toc, level=1, depth=section.extra.toc_depth | default(value=6)) }}{% endif %}
{{ macros::replace_toc(resource=section) | safe }}
</main>
{% endblock content %}