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:
- '/blog/**'
exclude:
- '/blog/drafts/**'
target: /blog/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')
de:
<<: *def
include:
- '/de/blog/**'
exclude:
- '/de/blog/drafts/**'
target: /de/blog/query-index.xlsx