From 67adcb73225ceeeb11bc09cfeaf6c8b9dbdb5c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 19 Mar 2025 23:53:56 +0100 Subject: [PATCH] version: fix for subdirectories #1050 --- layouts/partials/stylesheet.html | 6 +++++- layouts/partials/version.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html index f59dbb987c..337c1b4b43 100644 --- a/layouts/partials/stylesheet.html +++ b/layouts/partials/stylesheet.html @@ -114,11 +114,15 @@ {{- end }} {{- end }} {{- end }} + {{- $home_path := site.Home.RelPermalink }} + {{- $this_path := .RelPermalink }} + {{- $path := (strings.TrimPrefix $home_path $this_path) | default "/" }} + {{- $path = partial "permalink.gotmpl" (dict "link" $path) }}