Skip to content

Commit

Permalink
Add sitemap index
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Dec 6, 2024
1 parent 1082959 commit a7e477e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit a7e477e

Please sign in to comment.