Simplified doc-site generation
[AGL/documentation.git] / theme / mkdocs_windmill / article-nav.html
1 {% block article_nav %}
2   {%- if page and (page.next_page or page.previous_page) %}
3
4     {# Workaround to keep mkdocs 0.17 working for now, which has no 'url' filter. #}
5     {% if mkdocs_version >= "1" %}
6       {% from "page-nav-urls.html" import next_page, prev_page with context %}
7     {% else %}
8       {% set next_page = page.next_page.url %}
9       {% set prev_page = page.previous_page.url %}
10     {% endif %}
11
12   <div class="row wm-article-nav-buttons" role="navigation" aria-label="navigation">
13     {% if page.next_page %}
14     <div class="wm-article-nav pull-right">
15       <a href="{{ next_page }}" class="btn btn-xs btn-default pull-right">
16         Next
17         <i class="fa fa-chevron-right" aria-hidden="true"></i>
18       </a>
19       <a href="{{ next_page }}" class="btn btn-xs btn-link">
20         {{ page.next_page.title }}
21       </a>
22     </div>
23     {% endif %}
24
25     {%- if page.previous_page %}
26     <div class="wm-article-nav">
27       <a href="{{ prev_page }}" class="btn btn-xs btn-default pull-left">
28         <i class="fa fa-chevron-left" aria-hidden="true"></i>
29         Previous</a><a href="{{ prev_page }}" class="btn btn-xs btn-link">
30         {{ page.previous_page.title }}
31       </a>
32     </div>
33     {% endif %}
34   </div>
35
36   {%- endif %}
37 {% endblock %}