Commit 847efb09 authored by Administrator's avatar Administrator 💬

feat: display links to lessons in the top of the pages

parent e36a3f1d
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{{ assets.css()|raw }} {{ assets.css()|raw }}
{% block javascripts %} {% block javascripts %}
{# TODO: ZEPTO JS PLS #} {# TODO: ZEPTO JS PLEASE #}
{# Yes! We managed to remove all these crappy dependencies \o/ #} {# Yes! We managed to remove all these crappy dependencies \o/ #}
{# … No we did not, not until we remake the language selector #} {# … No we did not, not until we remake the language selector #}
{# {% do assets.addJs('jquery', 101) %}#} {# {% do assets.addJs('jquery', 101) %}#}
...@@ -110,6 +110,33 @@ ...@@ -110,6 +110,33 @@
{% block messages %} {% block messages %}
{% include 'partials/messages.html.twig' ignore missing %} {% include 'partials/messages.html.twig' ignore missing %}
{% endblock %} {% endblock %}
{# page.url {{ page.url }}#}
{# <pre>#}
{# {{ page.frontmatter|var_dump }}#}
{# </pre>#}
{# <pre>#}
{# {{ page.header|var_dump }}#}
{# </pre>#}
{% 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>
</nav>
{% endif %}
{% endif %}
{% block content %}{% endblock %} {% block content %}{% endblock %}
</section> </section>
</section> </section>
......
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