From 7fb455d349cca27b8c768e4afa1cca25fe0fe902 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 13 Jan 2025 16:19:49 -0500 Subject: [PATCH] docs: update edit this page paritial for elements code and demo pages --- docs/_includes/partials/component/edit-this-page.njk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/_includes/partials/component/edit-this-page.njk b/docs/_includes/partials/component/edit-this-page.njk index 9f8fcfd2bb..f8084a83fb 100644 --- a/docs/_includes/partials/component/edit-this-page.njk +++ b/docs/_includes/partials/component/edit-this-page.njk @@ -10,5 +10,8 @@ {% endfor %} {% endif %} {% set editPath = ('/' + (inputPath or page.inputPath)) | replace(r/^(\.)?\//, '') %} + {% if '30-code.md' in editPath or '90-demos.md' in editPath %} + {% set editPath = 'docs/_includes/layouts/pages/elements.11ty.ts' %} + {% endif %} Edit this page on GitHub