forked from sunstar-engineering/sunstar-engineering
-
Notifications
You must be signed in to change notification settings - Fork 4
/
helix-query.yaml
68 lines (67 loc) · 1.93 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
version: 1
indices:
site:
include:
- '/**'
exclude:
- '/_drafts/**'
- '/_tools/**'
- '/sidekick/**'
- '/fragments/**'
- '/**/fragments/**'
- '/nav'
- '/**/nav'
- '/footer'
- '/**/footer'
- '/thankyou'
- '/**/thankyou'
- '/search'
- '/**/search'
target: /query-index.json
properties:
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[name="description"]
value: attribute(el, "content")
breadcrumbtitle:
select: head > meta[name="breadcrumbtitle"]
value: attribute(el, "content")
publisheddate:
select: head > meta[name="publisheddate"]
value: attribute(el, "content")
pagename:
select: head > meta[name="pagename"]
value: attribute(el, "content")
robots:
select: head > meta[name="robots"]
value: attribute(el, "content")
type:
select: head > meta[name="type"]
value: attribute(el, "content")
category:
select: head > meta[name="category"]
value: attribute(el, "content")
featured:
select: head > meta[name="featured"]
value: attribute(el, "content")
tags:
select: head > meta[property="article:tag"]
values: |
attribute(el, 'content')
image:
select: head > meta[property="og:image"]
value: attribute(el, "content")
career-quote:
select: main .hero-career
value: match(el, '.*?\n?Quote\n([^\n]+)')
career-jobtitle:
select: main .hero-career
value: match(el, '.*?\n?Title\n([^\n]+)')
pagetype:
select: head > meta[name="pagetype"]
value: attribute(el, "content")