Commit e82b3add authored by Administrator's avatar Administrator 💬

feat: move lessons ToC to the bottom of the page

parent 1b32883e
......@@ -60,6 +60,7 @@
{# </section>#}
{% block header_language_selection_section %}
{% if not disable_language_selector %}
<section class="navbar-section">
<div>{# Wrapper div to make centering vertically easy #}
{% block header_language_selection %}
......@@ -67,6 +68,7 @@
{% endblock %}
</div>
</section>
{% endif %}
{% endblock %}
</nav>
</section>
......@@ -119,25 +121,27 @@
{# {{ page.header|var_dump }}#}
{# </pre>#}
{% block content %}{% endblock %}
{% if page.header %}
{% if page.header.lessons %}
<nav>
<h4>📚</h4>
<ul>
{% for lesson in page.header.lessons %}
<li>
<a href="/{{ language_selector.current }}/lessons/{{ lesson.slug }}">
{{ lesson.slug }}
</a>
{# {{ lesson.slug }}#}
</li>
{% endfor %}
</ul>
<h4>📚</h4>
<ul>
{% for lesson in page.header.lessons %}
<li>
<a href="/{{ language_selector.current }}/lessons/{{ lesson.slug }}">
{{ lesson.slug }}
</a>
{# {{ lesson.slug }}#}
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% endif %}
{% block content %}{% endblock %}
</section>
</section>
{% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment