Skip to content

Commit

Permalink
feat: Create helix-query.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghdaryapurkar authored Apr 16, 2024
1 parent 8001a26 commit 9483c94
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 9483c94

Please sign in to comment.