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.

56 lines
1.7 KiB
HTML

{% extends "index.html" %}
{% block title %}{{ config.title | upper }} – {{ 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 %}
{% if section.content %}
<h1>{{ section.title }}</h1>
{% endif %}
{% if section.extra.group %}<div class="metadata"><strong>Cílová skupina &ndash;</strong> {{ section.extra.group }}</div>{% endif %}
{% if section.extra.time %}<div class="metadata"><strong>Časová dotace &ndash;</strong> {{ section.extra.time }}</div>{% endif %}
{% if section.extra.authors %}
{% if section.extra.authors | length > 1 %}
<div class="metadata"><strong>Autoři &ndash;</strong>
{% for author in section.extra.authors %}
{{ author }}
{% if not author == section.extra.authors | last %}, {% endif %}
{% endfor %}
</div>
{% else %}
<div class="metadata"><strong>Autor &ndash;</strong> {{ section.extra.authors[0] }}</div>
{% endif %}
{% endif %}
{{ section.content | safe }}
{% endblock content %}