Zobrazení popisu místo názvu sekce

master
Emil Miler 5 years ago
parent 33adb92ae6
commit a46742a83a

@ -12,7 +12,7 @@
<div id="header">
{% set current_section = get_section(path="_index.md") %}
<a href="{{ config.base_url }}">{{ config.title }}</a>
<span class="subtitle">{% block subtitle %}{{ current_section.title }}{% endblock %}</span>
<span class="subtitle">{% block subtitle %}{{ config.description }}{% endblock %}</span>
</div>
<div id="menu">
<ul>

@ -1,7 +1,11 @@
{% extends "index.html" %}
{% block subtitle %}
{{ section.title }}
{% if section.description %}
{{ section.description }}
{% else %}
{{ section.title }}
{% endif %}
{% endblock %}
{% block content %}