From 8160be7cacad1a03be03b8dd326ff2c789b8a1ec Mon Sep 17 00:00:00 2001 From: PencilNavigator <85282140+pencilnav@users.noreply.github.com> Date: Wed, 28 Jan 2026 08:43:10 +0800 Subject: [PATCH] fix: source file (raw/blob) view button generates invalid file path Signed-off-by: PencilNavigator <85282140+pencilnav@users.noreply.github.com> --- src/partials/actions.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/partials/actions.html b/src/partials/actions.html index d4291a61..8287a05f 100644 --- a/src/partials/actions.html +++ b/src/partials/actions.html @@ -42,17 +42,17 @@ {% if "content.action.view" in features %} {% if "/blob/" in page.edit_url %} - {% set part = "blob" %} + {% set part = "/blob/" %} {% else %} - {% set part = "edit" %} + {% set part = "/edit/" %} {% endif %} - - {% set icon = config.theme.icon.view or "material/file-eye-outline" %} - {% include ".icons/" ~ icon ~ ".svg" %} - + + {% set icon = config.theme.icon.view or "material/file-eye-outline" %} + {% include ".icons/" ~ icon ~ ".svg" %} + {% endif %} {% endif %}