Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Created June 24, 2025 18:34
Show Gist options
  • Save auniverseaway/996d49121e71de4b74cf59a841a7041f to your computer and use it in GitHub Desktop.
Save auniverseaway/996d49121e71de4b74cf59a841a7041f to your computer and use it in GitHub Desktop.
auto-generated: true
indices:
main:
include:
- /**
target: /query-index.json
properties:
title:
select: head > meta[property="og:title"]
value: |
attribute(el, "content")
description:
select: head > meta[name="description"]
value: |
attribute(el, "content")
date:
select: head > meta[name="publication-date"]
value: |
dateValue(attribute(el, 'content'), 'MM-DD-YYYY')
lastModified:
select: none
value: |
parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')
image:
select: head > meta[property="og:image"]
value: |
match(attribute(el, "content"), "https:\/\/[^/]+(/.*)")
content:
select: main > div
values: characters(textContent(el), 0, 200)
tags:
select: head > meta[property="article:tag"]
values: |
attribute(el, 'content')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment