This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
helix-query.yaml
184 lines (167 loc) · 4.45 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
version: 1
indices:
blog:
source: html
fetch: https://{repo}-{owner}.hlx.page/{path}
include:
- '/express/learn/blog/*'
target: /express/learn/blog/query-index.xlsx
properties:
author:
select: head > meta[name="author"]
value: |
attribute(el, 'content')
title:
select: head > meta[property="og:title"]
value: |
attribute(el, 'content')
date:
select: head > meta[name="publication-date"]
value: |
parseTimestamp(attribute(el, 'content'), 'MM/DD/YYYY')
image:
select: head > meta[property="og:image"]
value: |
match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)')
teaser:
select: head > meta[name="description"]
value: |
attribute(el, 'content')
category:
select: head > meta[name="category"]
value: |
attribute(el, 'content')
tags:
select: head > meta[property="article:tag"]
values: |
attribute(el, 'content')
description:
select: head > meta[name="description"]
value: |
attribute(el, 'content')
lastModified:
select: none
value: |
parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')
website: &default
source: html
fetch: https://{repo}-{owner}.hlx.page/{path}
include:
- '/express/**'
exclude:
- '/express/learn/blog/*'
target: /express/query-index.xlsx
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:\/\/[^/]+(\/.*)')
lastModified:
select: none
value: |
parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')
shortTitle:
select: head > meta[name="short-title"]
value: |
attribute(el, 'content')
robots:
select: head > meta[name="robots"]
value: |
attribute(el, 'content')
germany:
<<: *default
include:
- '/de/express/**'
target: /de/express/query-index.xlsx
spain:
<<: *default
include:
- '/es/express/**'
target: /es/express/query-index.xlsx
france:
<<: *default
include:
- '/fr/express/**'
target: /fr/express/query-index.xlsx
italy:
<<: *default
include:
- '/it/express/**'
target: /it/express/query-index.xlsx
japan:
<<: *default
include:
- '/jp/express/**'
target: /jp/express/query-index.xlsx
korea:
<<: *default
include:
- '/kr/express/**'
target: /kr/express/query-index.xlsx
netherlands:
<<: *default
include:
- '/nl/express/**'
target: /nl/express/query-index.xlsx
brasil:
<<: *default
include:
- '/br/express/**'
target: /br/express/query-index.xlsx
taiwan:
<<: *default
include:
- '/tw/express/**'
target: /tw/express/query-index.xlsx
china:
<<: *default
include:
- '/cn/express/**'
target: /cn/express/query-index.xlsx
denmark:
<<: *default
include:
- '/dk/express/**'
target: /dk/express/query-index.xlsx
finland:
<<: *default
include:
- '/fi/express/**'
target: /fi/express/query-index.xlsx
norway:
<<: *default
include:
- '/no/express/**'
target: /no/express/query-index.xlsx
sweden:
<<: *default
include:
- '/se/express/**'
target: /se/express/query-index.xlsx
# templates:
# source: html
# fetch: https://{repo}-{owner}.hlx.page/{path}
# include:
# - 'express/**/*.(docx|md)'
# - '*/express/**/*.(docx|md)'
# exclude:
# - '**/Document.*'
# - 'express/learn/blog/**'
# target: https://adobe.sharepoint.com/:x:/r/sites/SparkHelix/Shared%20Documents/website/express/templates.xlsx?d=wf10c84f59e744163bf0a957a459177cd&csf=1&web=1&e=CSr8lx
# properties:
# sourceHash:
# select: head > meta[name=x-source-hash
# value: |
# attribute(el, 'content')
# lastModified:
# select: none
# value: |
# parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')
# templates:
# select: main div.template-list a
# values: |
# match(attribute(el, 'href'), 'https://adobesparkpost.app.link/(.*)')