Skip to content

Instantly share code, notes, and snippets.

@dominique-pfister
Last active October 9, 2025 09:32
Show Gist options
  • Select an option

  • Save dominique-pfister/92cb67b6f95e1edee6a7d6508b124039 to your computer and use it in GitHub Desktop.

Select an option

Save dominique-pfister/92cb67b6f95e1edee6a7d6508b124039 to your computer and use it in GitHub Desktop.
helix-query.yaml
indices:
english: &default
include:
- /en/**
exclude:
- /en/snippets/**
target: /query-index.json
properties:
author:
select: head > meta[name="author"]
value: |
attribute(el, 'content')
title:
select: main h1:first-of-type
value: |
textContent(el)
french:
<<: *default
include:
- /fr/**
exclude:
- /fr/snippets/**
target: /fr/query-index.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment