From a7e477e024200aa591b00da745f1d096b6bead31 Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Fri, 6 Dec 2024 14:19:59 +0100 Subject: [PATCH 1/4] Add sitemap index --- helix-query.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/helix-query.yaml b/helix-query.yaml index cd9ec09d74..b2b3c68eff 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -1,5 +1,35 @@ version: 1 indices: + sitemap: + target: /sitemap.json + exclude: + - 'drafts/**' + - 'fragments/**' + - 'products/**' + properties: + title: + select: head > meta[property="og:title"] + value: | + attribute(el, 'content') + image: + select: head > meta[property="og:image"] + value: | + attribute(el, 'content') + description: + select: head > meta[name="description"] + value: | + attribute(el, 'content') + template: + select: head > meta[name="template"] + value: | + attribute(el, 'content') + robots: + select: head > meta[name="robots"] + value: | + attribute(el, 'content') + lastModified: + select: none + value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT") enrichment: target: /enrichment/enrichment.json include: From ed7a9d414bce8b297bb156d05189235d3971c6c0 Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Fri, 6 Dec 2024 14:44:36 +0100 Subject: [PATCH 2/4] Add sitemap config --- helix-sitemap.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 helix-sitemap.yaml diff --git a/helix-sitemap.yaml b/helix-sitemap.yaml new file mode 100644 index 0000000000..a5d7ac9fd5 --- /dev/null +++ b/helix-sitemap.yaml @@ -0,0 +1,5 @@ +sitemaps: + default: + source: /sitemap.json + destination: /sitemap-content.xml + lastmod: YYYY-MM-DD \ No newline at end of file From c6a7d76005e1a96740f2c5520d92c41672e764de Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Fri, 6 Dec 2024 15:06:07 +0100 Subject: [PATCH 3/4] Update helix-query.yaml --- helix-query.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-query.yaml b/helix-query.yaml index b2b3c68eff..03533b45e3 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -4,6 +4,7 @@ indices: target: /sitemap.json exclude: - 'drafts/**' + - 'enrichment/**' - 'fragments/**' - 'products/**' properties: From 50dd54b5408a53524fbe9286dac380936b30e921 Mon Sep 17 00:00:00 2001 From: "Mark J. Becker" Date: Fri, 6 Dec 2024 15:26:31 +0100 Subject: [PATCH 4/4] Update robots with new sitemap --- draft.robots.txt => robots.txt | 2 +- sitemap-index.xml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) rename draft.robots.txt => robots.txt (70%) create mode 100644 sitemap-index.xml diff --git a/draft.robots.txt b/robots.txt similarity index 70% rename from draft.robots.txt rename to robots.txt index 1ca581a9f2..f3f9eaa5b3 100644 --- a/draft.robots.txt +++ b/robots.txt @@ -5,4 +5,4 @@ Disallow: /enrichment/ Disallow: /tools/ Disallow: /plugins/experimentation/ -Sitemap: https://www.aemshop.net/sitemap.xml \ No newline at end of file +Sitemap: https://www.aemshop.net/sitemap-index.xml \ No newline at end of file diff --git a/sitemap-index.xml b/sitemap-index.xml new file mode 100644 index 0000000000..2c4e328586 --- /dev/null +++ b/sitemap-index.xml @@ -0,0 +1,6 @@ + + + + https://www.aemshop.net/sitemap-content.xml + + \ No newline at end of file