generated from adobecom/milo-college
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helix-query.yaml
33 lines (31 loc) · 888 Bytes
/
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
version: 1
indices:
def: &def
include:
- '/food/**'
exclude:
- '/food/drafts/**'
target: /food/query-index.xlsx
properties:
title:
select: head > meta[property="og:title"]
value: attribute(el, 'content')
date:
select: head > meta[name="publishdate"]
value: dateValue(attribute(el, 'content'), 'MM-DD-YYYY')
image:
select: head > meta[property="og:image"]
value: match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)')
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')
it:
<<: *def
include:
- '/it/food/**'
exclude:
- '/it/food/drafts/**'
target: /it/food/query-index.xlsx