generated from AEMXSC/RefDemoEDS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelix-query.yaml
More file actions
91 lines (86 loc) · 2.05 KB
/
helix-query.yaml
File metadata and controls
91 lines (86 loc) · 2.05 KB
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
version: 1
indices:
site-en: &base-site
include:
- '/'
- '/en'
- '/en/**'
exclude:
- /en/search
- /en/nav
- /en/footer
target: /en/query-index.json
properties:
title:
select: main h1
value: textContent(el)
navTitle:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[name="description"]
value: attribute(el, "content")
body:
select: main
value: textContent(el)
tags:
select: head > meta[name="cq-tags"]
value: attribute(el, "content")
image:
select: head > meta[property="og:image"]
value: match(attribute(el, "content"), "^(https?:\/\/.*?(aem.live))+(.*)|^(.*)")
publishDate:
select: head > meta[name="published-time"]
value: parseTimestamp(attribute(el, "content"), "ddd, DD MMM YYYY hh:mm:ss GMT")
contentType:
select: head > meta[name="content_type"]
value: attribute(el, "content")
author:
select: head > meta[name="author"]
value: attribute(el, "content")
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")
robots:
select: head > meta[name="robots"]
value: attribute(el, "content")
site-fr:
<<: *base-site
include:
- '/fr'
- '/fr/**'
target: /fr/query-index.json
exclude:
- /fr/search
- /fr/nav
- /fr/footer
site-es:
<<: *base-site
include:
- '/es'
- '/es/**'
target: /es/query-index.json
exclude:
- /es/search
- /es/nav
- /es/footer
site-de:
<<: *base-site
include:
- '/de'
- '/de/**'
target: /de/query-index.json
exclude:
- /de/search
- /de/nav
- /de/footer
site-ja:
<<: *base-site
include:
- '/ja'
- '/ja/**'
exclude:
- /ja/nav
- /ja/search
- /ja/footer
target: /ja/query-index.json