From 2c67bed4cc961ea78611a6b6b423cc6f60bdfd50 Mon Sep 17 00:00:00 2001 From: Kiran Murugulla Date: Mon, 19 Aug 2024 14:41:22 -0400 Subject: [PATCH 1/5] updating url to .aem.live from .hlx.live --- .github/pull_request_template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 026dac98f7..9c78492f75 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a Fix # Test URLs: -- Before: https://main--{repo}--{owner}.hlx.live/ -- After: https://--{repo}--{owner}.hlx.live/ +- Before: https://main--{repo}--{owner}.aem.live/ +- After: https://--{repo}--{owner}.aem.live/ From 0f5aeb0502eaed72d39f26aafa1465e03475b353 Mon Sep 17 00:00:00 2001 From: Kiran Murugulla Date: Mon, 19 Aug 2024 14:42:46 -0400 Subject: [PATCH 2/5] docs: updating the preview and live urls in readme to .aem.page and .aem.live --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 896a0ea2de..fb797b6ad0 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Your project's description... ## Environments -- Preview: https://main--{repo}--{owner}.hlx.page/ -- Live: https://main--{repo}--{owner}.hlx.live/ +- Preview: https://main--{repo}--{owner}.aem.page/ +- Live: https://main--{repo}--{owner}.aem.live/ ## Installation From a3d09fa908f34fd6b3417c65c8fe557990cdcc64 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 7 Oct 2024 09:22:47 +0200 Subject: [PATCH 3/5] feat: add query index and sitemap --- helix-query.yaml | 14 ++++++++++++++ helix-sitemap.yaml | 5 +++++ paths.json | 3 ++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 helix-query.yaml create mode 100644 helix-sitemap.yaml diff --git a/helix-query.yaml b/helix-query.yaml new file mode 100644 index 0000000000..2af86ad56e --- /dev/null +++ b/helix-query.yaml @@ -0,0 +1,14 @@ +version: 1 + +indices: + pages: + include: + - '/**' + target: /query-index.json + properties: + lastModified: + select: none + value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT") + robots: + select: head > meta[name="robots"] + value: attribute(el, "content") \ No newline at end of file diff --git a/helix-sitemap.yaml b/helix-sitemap.yaml new file mode 100644 index 0000000000..ac41d5b54b --- /dev/null +++ b/helix-sitemap.yaml @@ -0,0 +1,5 @@ +sitemaps: + default: + source: /query-index.json + destination: /sitemap.xml + lastmod: YYYY-MM-DD \ No newline at end of file diff --git a/paths.json b/paths.json index 235d73a901..a3a889bb52 100644 --- a/paths.json +++ b/paths.json @@ -1,6 +1,7 @@ { "mappings": [ "/content/aem-boilerplate/:/", - "/content/aem-boilerplate/configuration:/.helix/config.json" + "/content/aem-boilerplate/configuration:/.helix/config.json", + "/content/aem-boilerplate/metadata:/metadata.json" ] } From 0b409fb636f26cb05f38dac020515678aa8d9816 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 7 Oct 2024 09:45:50 +0200 Subject: [PATCH 4/5] fix: exclude spreadsheets from the index --- helix-query.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-query.yaml b/helix-query.yaml index 2af86ad56e..1f032ddb46 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -4,6 +4,8 @@ indices: pages: include: - '/**' + exclude: + - '/**.json' target: /query-index.json properties: lastModified: From 67dd247aafb3fcdb810a18b193dfdfae1ee6b62f Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 11 Oct 2024 10:36:13 +0200 Subject: [PATCH 5/5] fix: add aue:content-copy event to be handled when applying changes --- scripts/editor-support.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/editor-support.js b/scripts/editor-support.js index 0fcfda4c08..2fe55f7a50 100644 --- a/scripts/editor-support.js +++ b/scripts/editor-support.js @@ -95,6 +95,7 @@ function attachEventListners(main) { 'aue:content-add', 'aue:content-move', 'aue:content-remove', + 'aue:content-copy', ].forEach((eventType) => main?.addEventListener(eventType, async (event) => { event.stopPropagation(); const applied = await applyChanges(event);