You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

43 lines
1.3 KiB
HTML

{% extends "index.html" %}
{% block title %}{{ config.title }} – {{ section.title }}{% endblock %}
{% block nav %}
<div id="nav">
{% if section.ancestors %} {# List all ancestors #}
{% for s in section.ancestors %}
{% if loop.index < 2 %}{% continue %}{% endif %}
<ul>
{% set s = get_section(path=s) %}
{% for s in s.subsections %}
{% set s = get_section(path=s) %}
<li><a href="{{ s.permalink }}"
{% if current_path == s.path %}
class="active"
{% elif current_path is containing(s.path) %}
class="ancestor"
{% endif %}
>{{ s.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endif %}
{% if section.subsections %} {# list all direct subsections #}
<ul>
{% for s in section.subsections %}
{% set s = get_section(path=s) %}
<li><a href="{{ s.permalink }}">{{ s.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}
{% block content %}
<h1>{{ section.title }}</h1>
{% if section.extra.group %}<div class="metadata">Cílová skupina &ndash; {{ section.extra.group }}</div>{% endif %}
{% if section.extra.time %}<div class="metadata">Časová dotace &ndash; {{ section.extra.time }}</div>{% endif %}
{% if section.extra.author %}<div class="metadata">Autor &ndash; {{ section.extra.author }}</div>{% endif %}
{{ section.content | safe }}
{% endblock content %}