diff --git a/templates/base.html b/templates/base.html index 09ff66e..44e2f84 100644 --- a/templates/base.html +++ b/templates/base.html @@ -58,17 +58,17 @@ {% set root_section = get_section(path="_index.md") %} - /home/ + home {# Render subsections #} {% for subsection_path in root_section.subsections %} {% set subsection = get_section(path=subsection_path) %} - {{ subsection.permalink | replace(from=config.base_url, to="") }} + {{ subsection.permalink | replace(from=config.base_url, to="") | trim_start_matches(pat="/") | trim_end_matches(pat="/") }} {% endfor %} {# Render pages at the root #} {% for page in root_section.pages %} - {{ page.permalink | replace(from=config.base_url, to="") }} + {{ page.permalink | replace(from=config.base_url, to="") | trim_start_matches(pat="/") | trim_end_matches(pat="/") }} {% endfor %}