Skip to content

Commit

Permalink
feat: Update helix-query.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghdaryapurkar authored Apr 16, 2024
1 parent 95c974c commit f676b04
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ indices:
- /**
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")
Expand Down

0 comments on commit f676b04

Please sign in to comment.