From c06788de93d557efc8362c1c4b7daa56471bf3c2 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Wed, 17 Jan 2024 11:41:52 -0600 Subject: [PATCH] Update helix-query.yaml (#78) * Update helix-query.yaml Exclude drafts from index * Update helix-query.yaml * Update helix-query.yaml --- helix-query.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/helix-query.yaml b/helix-query.yaml index 54f7f438..6945c2f9 100644 --- a/helix-query.yaml +++ b/helix-query.yaml @@ -3,11 +3,15 @@ indices: default: include: - /** - target: /query-index.json + exclude: + - '**/drafts/**' + - '**/images/**' + - '**/icons/**' + - '/**/footer' + - '/**/nav' + - '/**/404' + target: /cigaradvisor/query-index.json properties: - lastModified: - select: none - value: parseTimestamp(headers["last-modified"], "ddd, DD MMM YYYY hh:mm:ss GMT") title: select: head > meta[property="og:title"] value: attribute(el, "content") @@ -17,6 +21,9 @@ indices: 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") articles: include: - /cigaradvisor/posts/**