mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
24 lines
1 KiB
Twig
24 lines
1 KiB
Twig
|
{% 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 navigation %}
|
||
|
<div id="navigation">
|
||
|
{% if not progress.isFirst(page.path) and not (progress.nextSibling(page.path).url == progress.prevSibling(page.path).url) %}
|
||
|
<a class="nav nav-prev" href="{{ progress.nextSibling(page.path).url }}"> <i class="fa fa-chevron-left"></i></a>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if not progress.isLast(page.path) and not (progress.nextSibling(page.path).url == progress.prevSibling(page.path).url) %}
|
||
|
<a class="nav nav-next" href="{{ progress.prevSibling(page.path).url }}"><i class="fa fa-chevron-right"></i></a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% include 'partials/page.html.twig' %}
|
||
|
{% endblock %}
|