forked from hlxsites/bitdefender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelix-query.yaml
189 lines (189 loc) · 4.89 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
version: 1
indices:
index_en_us:
include:
- /en-us/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /en-us/query-index.json
properties: &minPros
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[name="description"]
value: attribute(el, "content")
h1:
# There can be multiple h1s in the document, but we want to index just the very first one
# Assumptions:
# 1. if the h1 is in a block, than that block is the first one in the document => main > div:first-child > div:first-child h1
# 2. if the h1 is in the default content, than there are no other blocks before this default content => main > div > h1
select: main > div:first-child > div:first-child h1, main div > h1
value: textContent(el)
breadcrumbtitle:
select: head > meta[name="breadcrumb-title"]
value: attribute(el, "content")
robots:
select: head > meta[name="robots"]
value: attribute(el, "content")
index_de_de:
include:
- /de-de/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /de-de/query-index.json
properties: *minPros
index_en_global:
include:
- /en-global/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /en-global/query-index.json
properties: *minPros
index_en_au:
include:
- /en-au/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /en-au/query-index.json
properties: *minPros
index_en_gb:
include:
- /en-gb/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /en-gb/query-index.json
properties: *minPros
index_es_es:
include:
- /es-es/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /es-es/query-index.json
properties: *minPros
index_es_global:
include:
- /es-global/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /es-global/query-index.json
properties: *minPros
index_fr_fr:
include:
- /fr-fr/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /fr-fr/query-index.json
properties: *minPros
index_it_it:
include:
- /it-it/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /it-it/query-index.json
properties: *minPros
index_nl_nl:
include:
- /nl-nl/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /nl-nl/query-index.json
properties: *minPros
index_pt_br:
include:
- /pt-br/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /pt-br/query-index.json
properties: *minPros
index_pt_pt:
include:
- /pt-pt/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /pt-pt/query-index.json
properties: *minPros
index_ro_ro:
include:
- /ro-ro/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /ro-ro/query-index.json
properties: *minPros
index_sv_se:
include:
- /sv-se/**
exclude:
- /**/consumer/**/fragments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /sv-se/query-index.json
properties: *minPros
index_zh_hk:
include:
- /zh-hk/**
exclude:
- /**/solutions/**/fragments/**
target: /zh-hk/query-index.json
properties: *minPros
index_zh_tw:
include:
- /zh-tw/**
exclude:
- /**/consumer/**/fragments/**
target: /zh-tw/query-index.json
properties: *minPros