Skip to content

Commit

Permalink
feat: add query index and sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu committed Oct 7, 2024
1 parent 5ce4335 commit a3d09fa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -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")
5 changes: 5 additions & 0 deletions helix-sitemap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sitemaps:
default:
source: /query-index.json
destination: /sitemap.xml
lastmod: YYYY-MM-DD
3 changes: 2 additions & 1 deletion paths.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit a3d09fa

Please sign in to comment.