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" ] }