Zobrazení popisu místo názvu sekce

master
Emil Miler 5 years ago
parent 33adb92ae6
commit a46742a83a

@ -12,7 +12,7 @@
<div id="header"> <div id="header">
{% set current_section = get_section(path="_index.md") %} {% set current_section = get_section(path="_index.md") %}
<a href="{{ config.base_url }}">{{ config.title }}</a> <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>
<div id="menu"> <div id="menu">
<ul> <ul>

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