From a3d09fa908f34fd6b3417c65c8fe557990cdcc64 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 7 Oct 2024 09:22:47 +0200 Subject: [PATCH] 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" ] }