duckling/templates/docs.html
david-swift 5d621bc729
Some checks are pending
Publish / publish (push) Waiting to run
Implement docs sidebar #3
2025-04-01 14:31:12 +02:00

28 lines
791 B
HTML

{% extends "restricted_base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
{{ section.content | safe }}
{# <div class="sparkline">
{%- if paginator.pages -%}
{%- set pages = paginator.pages -%}
{%- elif section.pages -%}
{%- set pages = section.pages -%}
{%- else -%}
{%- set pages = term.pages -%}
{%- endif -%}
{%- for month, pages in pages | group_by(attribute="month") -%}
{%- set posts_per_bar = pages | length -%}
{%- set bar_height = pages | length * 10 -%}
<div style="--bar-height: {{ bar_height ~ '%' }}" title="{{ macros_translate::translate(key='posts', number=posts_per_bar, default='$NUMBER posts in total', language_strings=language_strings) }}"></div>
{%- endfor -%}
</div> #}
{% include "partials/docs_toc.html" %}
{% endblock content %}