forked from adobecom/milo-college
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelix-query.yaml
74 lines (72 loc) · 2.23 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
67
68
69
70
71
72
73
indices:
site:
include:
- '/**'
exclude:
- '/drafts/**'
- '/fragments/**'
- '/calendar/**'
- '/tools/**'
target: /query-index.json
properties:
title:
select: h1
value: textContent(el)
description:
select: main > div p
value: words(textContent(el), 0, 50)
publishDate:
select: head > meta[name="publishdatetime"]
value: parseTimestamp(attribute(el, "content"), "ddd, DD MMM YYYY hh:mm:ss GMT")
image:
select: head > meta[property="og:image"]
value: attribute(el, 'content')
robots:
select: head > meta[name="robots"]
value: attribute(el, "content")
events:
include:
- /calendar/**
exclude:
- /calender
- /calendar/
- /calendar/county-commission-district-a/
- /calendar/county-commission-district-b/
- /calendar/featured-events/
- /calendar/county-commissioners/
- /calendar/county-commissioners-district-d/
- /calendar/county-commissioners-district-e/
- /calendar/county-commissioners-district-f/
- /calendar/county-commissioners-district-c/
target: /calendar/events.json
properties:
divisionname:
select: head > meta[name="divisionname"]
value: attribute(el, "content")
start:
select: head > meta[name="eventstart"]
value: attribute(el, "content")
end:
select: head > meta[name="eventstop"]
value: attribute(el, "content")
daysOfWeek:
select: head > meta[name="daysofweek"]
value: attribute(el, "content")
duration:
select: head > meta[name="duration"]
value: attribute(el, "content")
excludeDates:
select: head > meta[name="excludedates"]
value: attribute(el, "content")
title:
select: head > meta[name="featuredtitle"]
value: attribute(el, "content")
eventdescription:
select: head > meta[name="featureddescription"]
value: attribute(el, "content")
readMore:
select: head > meta[name="readmore"]
value: attribute(el, "content")
image:
select: head > meta[name="featuredimage"]
value: attribute(el, 'content')