Commit e82b3add authored by Administrator's avatar Administrator 💬

feat: move lessons ToC to the bottom of the page

parent 1b32883e
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
{# </section>#} {# </section>#}
{% block header_language_selection_section %} {% block header_language_selection_section %}
{% if not disable_language_selector %}
<section class="navbar-section"> <section class="navbar-section">
<div>{# Wrapper div to make centering vertically easy #} <div>{# Wrapper div to make centering vertically easy #}
{% block header_language_selection %} {% block header_language_selection %}
...@@ -67,6 +68,7 @@ ...@@ -67,6 +68,7 @@
{% endblock %} {% endblock %}
</div> </div>
</section> </section>
{% endif %}
{% endblock %} {% endblock %}
</nav> </nav>
</section> </section>
...@@ -119,25 +121,27 @@ ...@@ -119,25 +121,27 @@
{# {{ page.header|var_dump }}#} {# {{ page.header|var_dump }}#}
{# </pre>#} {# </pre>#}
{% block content %}{% endblock %}
{% if page.header %} {% if page.header %}
{% if page.header.lessons %} {% if page.header.lessons %}
<nav> <nav>
<h4>📚</h4> <h4>📚</h4>
<ul> <ul>
{% for lesson in page.header.lessons %} {% for lesson in page.header.lessons %}
<li> <li>
<a href="/{{ language_selector.current }}/lessons/{{ lesson.slug }}"> <a href="/{{ language_selector.current }}/lessons/{{ lesson.slug }}">
{{ lesson.slug }} {{ lesson.slug }}
</a> </a>
{# {{ lesson.slug }}#} {# {{ lesson.slug }}#}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% block content %}{% endblock %}
</section> </section>
</section> </section>
{% endblock %} {% 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