doc/themes/learn4/templates/docs.html.twig

18 lines
629 B
Twig
Raw Normal View History

2020-11-14 11:24:49 +01:00
{% set body_classes = body_classes ~ ' ' ~ page.header.body_classes %}
{% extends 'partials/base.html.twig' %}
{% set tags = page.taxonomy.tag %}
{% if tags %}
{% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs', 'tag': tags}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% else %}
{% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs'}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% endif %}
{% block content %}
{% include 'partials/toc.html.twig' %}
{% include 'partials/page.html.twig' %}
{% include 'partials/github-note.html.twig' %}
{% endblock %}