zola/docs/templates/documentation.html

32 lines
1.1 KiB
HTML
Raw Normal View History

2017-09-12 07:13:26 +00:00
{% extends "index.html" %}
{% block extra_nav_class %}{% endblock extra_nav_class %}
2017-09-12 07:13:26 +00:00
{% block extra_content_class %}content--reversed{% endblock extra_content_class %}
{% block content %}
{% set section = get_section(path="documentation/_index.md") %}
2017-10-03 15:21:18 +00:00
<div class="documentation">
2017-09-12 07:13:26 +00:00
<aside class="documentation__sidebar">
<ul>
{% for p in section.subsections %}
{% set subsection = get_section(path=p) %}
2017-09-12 07:13:26 +00:00
<li>
2017-10-03 15:21:18 +00:00
<span class="documentation__sidebar__title">{{ subsection.title }}</span>
2017-09-12 07:13:26 +00:00
<ul>
{% for page in subsection.pages %}
<li class="{% if current_path == page.path %}active{% endif %}">
<a href="{{page.permalink}}">{{page.title}}</a>
</li>
2017-09-12 07:13:26 +00:00
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
2017-09-12 07:13:26 +00:00
</aside>
<div class="documentation__content">
{% block doc_content %}
{% endblock doc_content %}
2017-09-12 07:13:26 +00:00
</div>
</div>
{% endblock content %}