forked from hlxsites/bitdefender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelix-query.yaml
141 lines (141 loc) · 3.69 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
version: 1
indices:
index_en_us:
include:
- /en-us/**
exclude: &excludeList
- /**/fragments/**
- /**/experiments/**
- /**/webview/**
- /**/404
- /**/footer
- /**/nav
- /**/dlp-components/**
- /**/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: *excludeList
target: /de-de/query-index.json
properties: *minPros
index_en_global:
include:
- /en-global/**
exclude: *excludeList
target: /en-global/query-index.json
properties: *minPros
index_en_au:
include:
- /en-au/**
exclude: *excludeList
target: /en-au/query-index.json
properties: *minPros
index_en_gb:
include:
- /en-gb/**
exclude: *excludeList
target: /en-gb/query-index.json
properties: *minPros
index_es_es:
include:
- /es-es/**
exclude: *excludeList
target: /es-es/query-index.json
properties: *minPros
index_es_global:
include:
- /es-global/**
exclude: *excludeList
target: /es-global/query-index.json
properties: *minPros
index_fr_fr:
include:
- /fr-fr/**
exclude: *excludeList
target: /fr-fr/query-index.json
properties: *minPros
index_it_it:
include:
- /it-it/**
exclude: *excludeList
target: /it-it/query-index.json
properties: *minPros
index_nl_nl:
include:
- /nl-nl/**
exclude: *excludeList
target: /nl-nl/query-index.json
properties: *minPros
index_pt_br:
include:
- /pt-br/**
exclude: *excludeList
target: /pt-br/query-index.json
properties: *minPros
index_pt_pt:
include:
- /pt-pt/**
exclude: *excludeList
target: /pt-pt/query-index.json
properties: *minPros
index_ro_ro:
include:
- /ro-ro/**
exclude: *excludeList
target: /ro-ro/query-index.json
properties: *minPros
index_sv_se:
include:
- /sv-se/**
exclude: *excludeList
target: /sv-se/query-index.json
properties: *minPros
index_zh_hk:
include:
- /zh-hk/**
exclude:
- /**/solutions/**/fragments/**
- /**/solutions/**/experiments/**
- /**/consumer/**/fragments/**
- /**/consumer/**/experiments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /zh-hk/query-index.json
properties: *minPros
index_zh_tw:
include:
- /zh-tw/**
exclude:
- /**/solutions/**/fragments/**
- /**/solutions/**/experiments/**
- /**/consumer/**/fragments/**
- /**/consumer/**/experiments/**
- /**/consumer/404
- /**/consumer/footer
- /**/consumer/nav
- /**/consumer/thank-you
target: /zh-tw/query-index.json
properties: *minPros