From 055ab6c4e3a758ceda9bb37ae89b9b5e601f1f84 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 15 Feb 2022 21:14:05 +0100 Subject: [PATCH] fix: fallback to 'content' if no contentDir parameter is set (#344) --- 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 008dd04..135ef90 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 (path.Join .Site.Params.contentDir .File.Path) .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 }}