Skip to content

Commit

Permalink
Merge branch 'main' into path-includes
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu authored Oct 30, 2024
2 parents a4aaaa8 + 67dd247 commit e0bd3d4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 1

indices:
pages:
include:
- '/**'
exclude:
- '/**.json'
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,7 +1,8 @@
{
"mappings": [
"/content/aem-boilerplate/:/",
"/content/aem-boilerplate/configuration:/.helix/config.json"
"/content/aem-boilerplate/configuration:/.helix/config.json",
"/content/aem-boilerplate/metadata:/metadata.json"
],
"includes": [
"/content/aem-boilerplate/"
Expand Down
1 change: 1 addition & 0 deletions scripts/editor-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e0bd3d4

Please sign in to comment.