From 9bb0bfab13c18ebc49cce1559f33d04c5f5f654f Mon Sep 17 00:00:00 2001 From: Rychart Redwerkz Date: Mon, 30 Jan 2023 15:48:57 +0100 Subject: Fix `edit this Page` on `examples/docs` (#6028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 Fix path from `pages` to `content/docs` * 🐛 Fix path from `pages` to `content/docs` --- examples/docs/src/layouts/MainLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/docs/src') diff --git a/examples/docs/src/layouts/MainLayout.astro b/examples/docs/src/layouts/MainLayout.astro index 931b75dba..329ea7efb 100644 --- a/examples/docs/src/layouts/MainLayout.astro +++ b/examples/docs/src/layouts/MainLayout.astro @@ -17,7 +17,7 @@ type Props = CollectionEntry<'docs'>['data'] & { const { headings, ...data } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site); const currentPage = Astro.url.pathname; -const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`; +const currentFile = `src/content/docs${currentPage.replace(/\/$/, '')}.md`; const githubEditUrl = `${GITHUB_EDIT_URL}/${currentFile}`; --- -- cgit v1.2.3