Skip to content

Commit

Permalink
Adding a blog index (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
fe-lix- authored Nov 16, 2023
1 parent 4e49cda commit 125a467
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
version:1
indices:
blog_us:
include:
- /blog/**
target: /blog/query-index.json
properties:
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")
date:
select: head > meta[name="publication-date"]
value: parseTimestamp(attribute(el, "content"), "MM/DD/YYYY")
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[property="og:description"]
value: attribute(el, "content")
blog_ca:
include:
- /ca/blog/**
target: /ca/blog/query-index.json
properties:
lastModified:
select: none
value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT")
date:
select: head > meta[name="publication-date"]
value: parseTimestamp(attribute(el, "content"), "MM/DD/YYYY")
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[property="og:description"]
value: attribute(el, "content")

0 comments on commit 125a467

Please sign in to comment.