From f387f4c1d9d5a2b7b78d454e16a180f49bc63d1c Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 17 May 2025 15:49:26 +0200 Subject: Add setup and usage pages --- website/templates/index.html | 2 +- website/templates/macros.html | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'website/templates') diff --git a/website/templates/index.html b/website/templates/index.html index 5877765..c61defd 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -6,6 +6,6 @@

Rustlings

- {{ section.content | replace(from="", to=macros::toc() ) | safe }} + {{ section.content | safe }}
{% endblock %} diff --git a/website/templates/macros.html b/website/templates/macros.html index ce517b0..dd7b928 100644 --- a/website/templates/macros.html +++ b/website/templates/macros.html @@ -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 %}