Add setup and usage pages

This commit is contained in:
mo8it
2025-05-17 15:49:26 +02:00
parent b30973afa1
commit f387f4c1d9
5 changed files with 150 additions and 135 deletions
+1 -1
View File
@@ -6,6 +6,6 @@
<div class="m-3">
<h1>Rustlings</h1>
{{ section.content | replace(from="<!-- toc -->", to=macros::toc() ) | safe }}
{{ section.content | safe }}
</div>
{% endblock %}
+2 -8
View File
@@ -1,15 +1,9 @@
{% macro toc() %}
{%- if page.toc -%}
{% set_global toc = page.toc %}
{%- else -%}
{% set_global toc = section.toc %}
{%- endif -%}
{% if toc %}
{% if page.toc %}
<div class="px-4 py-0.5 my-3 border-s-4 rounded-xl border-double">
<nav>
<ul class="ml-0 list-none">
{% for parent in toc %}
{% for parent in page.toc %}
{% if parent.level == 2 %}
<li>
{#- -#}