From c7894233037b014ac785bdbac91307b06d2bb473 Mon Sep 17 00:00:00 2001 From: Philipp Schmiedel Date: Sat, 23 Sep 2023 16:39:51 +0200 Subject: [PATCH 1/2] introduce editPost.appendQueryParam --- layouts/partials/edit_post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index 4f2c4de580..430dfc862f 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -2,7 +2,7 @@ {{- $fileUrlPath := path.Join .File.Path }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} - + {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} {{- end }} From 169adb5b8f36564194878d7fee0273dfdb68038d Mon Sep 17 00:00:00 2001 From: Philipp Schmiedel Date: Sat, 23 Sep 2023 18:16:07 +0200 Subject: [PATCH 2/2] support site config for new parameter --- layouts/partials/edit_post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index 430dfc862f..cf99db317f 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -2,7 +2,7 @@ {{- $fileUrlPath := path.Join .File.Path }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} - + {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} {{- end }}