From 29eda1d9bce113bd895dbeda69d0426726fc440c Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 14 Jul 2023 17:31:57 +0200 Subject: [PATCH] Revert https://github.com/thegeeklab/hugo-geekdoc/commit/f3e12d6ccc91d87367cbda26bc6467b4eba35ffa --- layouts/partials/page-header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 8f146d7..876ccc0 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -1,7 +1,7 @@ {{ $geekdocRepo := default (default false .Site.Params.geekdocRepo) .Page.Params.geekdocRepo }} {{ $geekdocEditPath := default (default false .Site.Params.geekdocEditPath) .Page.Params.geekdocEditPath }} {{ if .File }} - {{ $.Scratch.Set "geekdocFilePath" (default (strings.TrimPrefix hugo.WorkingDir .File.Filename) .Page.Params.geekdocFilePath) }} + {{ $.Scratch.Set "geekdocFilePath" (default (path.Join (default "content" .Site.Params.contentDir) .File.Path) .Page.Params.geekdocFilePath) }} {{ else }} {{ $.Scratch.Set "geekdocFilePath" false }} {{ end }}