generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helix-query.yaml
59 lines (59 loc) · 1.92 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
indices:
ship-specifications:
target: /specifications/query-index.json
include:
- '/specifications/**'
properties:
name:
select: head > meta[property="og:title"]
value: attribute(el, "content")
feature-names:
select: .features > div > div:first-child
values: textContent(el)
feature-values:
select: .features > div > div:nth-child(2)
values: textContent(el)
specification-names:
select: .specifications > div > div:first-child
values: textContent(el)
specification-values:
select: .specifications > div > div:nth-child(2)
values: textContent(el)
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")
ship-focus:
target: /focus/query-index.json
include:
- '/focus/**'
properties:
name:
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[property="og:description"]
value: attribute(el, "content")
specifications:
select: head > meta[name="specifications"]
value: attribute(el, "content")
hull-finishes-names:
select: head > meta[name^="hull-finish-image-"]
values: attribute(el, "name")
hull-finishes-images:
select: head > meta[name^="hull-finish-image-"]
values: attribute(el, "content")
feature-headlines:
select: h3
values: textContent(el)
feature-images:
select: h3 + p picture img
values: attribute(el, "src")
feature-descriptions:
select: h3 + p + p
values: textContent(el)
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")