From 0efe2159adaaf3239921269a6049a26d84792ec3 Mon Sep 17 00:00:00 2001 From: Andrey <586380+andreyantipov@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:03:59 +0000 Subject: [PATCH 1/2] edit this page --- src/partials/toolbar.hbs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index c6e9ea6..4140e23 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -5,9 +5,4 @@ {{/with}} {{> breadcrumbs}} {{> page-versions}} - {{#if (and page.fileUri (not env.CI))}} -
Edit this Page
- {{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}} -
Edit this Page
- {{/if}} From 9dfec880773ba11fd099b278a11229e7b1fbfdc6 Mon Sep 17 00:00:00 2001 From: Andrey <586380+andreyantipov@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:17:33 +0000 Subject: [PATCH 2/2] turn off edit this page partial template --- src/partials/toolbar.hbs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index 4140e23..62ed39a 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -5,4 +5,10 @@ {{/with}} {{> breadcrumbs}} {{> page-versions}} + {{!-- Please uncomment this functionality if it is needed (edit page link in top right corner) --}} + {{!-- {{#if (and page.fileUri (not env.CI))}} +
Edit this Page
+ {{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}} +
Edit this Page
+ {{/if}} --}}