From d30b1c9468294c5d5327b63124490f3bdc758ceb Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Fri, 4 Aug 2023 14:52:47 +0200 Subject: [PATCH] Fix creation of new child page (#1644) --- layouts/partials/page-meta-links.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html index 0e90cc93e9..74032e1b14 100644 --- a/layouts/partials/page-meta-links.html +++ b/layouts/partials/page-meta-links.html @@ -35,7 +35,7 @@ {{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (safeURL $.Title ) -}} {{ $newPageStub := resources.Get "stubs/new-page-template.md" -}} {{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}} - {{ $newPageURL := printf "%s/new/%s?%s" $gh_repo $gh_repo_path $newPageQS -}} + {{ $newPageURL := printf "%s/new/%s?%s" $gh_repo (path.Dir $gh_repo_path) $newPageQS -}} {{ T "post_view_this" }} {{ T "post_edit_this" }}