generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelix-query.yaml
66 lines (65 loc) · 1.71 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
60
61
62
63
64
65
66
version: 1
indices:
blogposts:
include:
- /baseball/**
- /basketball/**
- /football/**
- /golf/**
- /padel/**
- /sportswear/**
- /tennis/**
exclude:
- /*
target: /blogpost-index.json
properties:
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
image:
select: head > meta[property="og:image"]
value: |
match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)')
description:
select: head > meta[name="description"]
value: attribute(el, "content")
sport:
select: head > meta[name="sport"]
values: |
match(attribute(el, "content"), '([^,]+)')
category:
select: head > meta[name="category"]
values: |
match(attribute(el, "content"), '([^,]+)')
thumbnail:
select: head > meta[name="thumbnail"]
value: |
attribute(el, 'content')
category:
include:
- /category/**
target: /category-index.json
properties:
name:
select: head > meta[name="name"]
value: attribute(el, "content")
folder:
select: head > meta[name="folder"]
value: attribute(el, "content")
template:
select: head > meta[name="template"]
value: attribute(el, "content")
sport:
include:
- /*
target: /sport-index.json
properties:
name:
select: head > meta[name="name"]
value: attribute(el, "content")
folder:
select: head > meta[name="folder"]
value: attribute(el, "content")
template:
select: head > meta[name="template"]
value: attribute(el, "content")