Skip to content

Commit

Permalink
Update helix-query.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp authored Jan 25, 2024
1 parent bfc4bd7 commit e9a2e11
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,20 @@ indices:
seo_path:
select: none
value: replace(path, match(path, "(/articles\/[^/]+\/[^/]+)\/"), '/posts')
article-search:
include:
- /cigaradvisor/articles/**/*
target: /cigaradvisor/posts/search-index.json
properties:
title:
select: head > meta[property="og:title"]
value: attribute(el, "content")
description:
select: head > meta[property="og:description"]
value: attribute(el, "content")
heading:
select: main h1:first-of-type
value: textContent(el)
text:
select: main > div p
value: words(textContent(el), 0, 30000)

0 comments on commit e9a2e11

Please sign in to comment.