From 6b877b6100ef68f9687edda75d563246442b6e02 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 00:33:28 +0200 Subject: [PATCH] fix(templates): strip base_url from nav hrefs and unescape image src URLs --- templates/base.html | 2 +- templates/macros/image.html | 2 +- templates/partials/navbar.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/base.html b/templates/base.html index 9e8acec..49af294 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@ {% set top = get_section(path="_index.md") %} {% for p in top.subsections %} {% set sub = get_section(path=p) %} -
  • {{ sub.title }}
  • +
  • {{ sub.title }}
  • {% endfor %} diff --git a/templates/macros/image.html b/templates/macros/image.html index b25fb63..a28b042 100644 --- a/templates/macros/image.html +++ b/templates/macros/image.html @@ -5,7 +5,7 @@ {%- set source_path = "static/images/" ~ src -%} {%- set resized = resize_image(path=source_path, width=width, op="fit_width", quality=85) -%} {{ alt }} {%- for cpage in child.pages -%} -
  • {{ cpage.title }}
  • +
  • {{ cpage.title }}
  • {%- endfor -%} @@ -44,7 +44,7 @@ {%- else -%}
  • - {{ sub.title }} + {{ sub.title }}
  • {%- endif -%} {%- endfor -%}