forked from adobecom/homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelix-query.yaml
29 lines (28 loc) · 874 Bytes
/
helix-query.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: 1
indices:
def: &def
include:
- '/homepage/**'
exclude:
- '/homepage/fragments/**'
- '/homepage/drafts/**'
- '/homepage/assets/**'
- '/homepage/gnav/**'
- '/homepage/footer/**'
target: /homepage/query-index.xlsx
properties:
title:
select: head > meta[property="og:title"]
value: attribute(el, 'content')
date:
select: head > meta[name="publishdate"]
value: dateValue(attribute(el, 'content'), 'MM-DD-YYYY')
image:
select: head > meta[property="og:image"]
value: match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)')
description:
select: head > meta[name="description"]
value: attribute(el, 'content')
lastModified:
select: none
value: parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')