From 9483c945f32d692b269f73671f387702409819fb Mon Sep 17 00:00:00 2001 From: Amogh Date: Tue, 16 Apr 2024 15:03:31 -0400 Subject: [PATCH] feat: Create helix-query.yaml --- helix-query.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 helix-query.yaml diff --git a/helix-query.yaml b/helix-query.yaml new file mode 100644 index 0000000..f611ebb --- /dev/null +++ b/helix-query.yaml @@ -0,0 +1,23 @@ +version: 1 +indices: + default: + include: + - /** + target: /query-index.json + 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:\/\/[^/]+(/.*)") + thumbnail: + select: head > meta[name="thumbnail"] + value: 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") +