From b8d3d95aa356a05375c24117c98dcba7fa0e3142 Mon Sep 17 00:00:00 2001 From: Nicolas Hoizey Date: Thu, 7 Dec 2023 00:05:17 +0100 Subject: [PATCH] Fix typo in sorting docs There was a mention of filter value where this should be a sort value --- docs/content/docs/sorts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/docs/sorts.md b/docs/content/docs/sorts.md index f2791dbe..3eb9cc0e 100644 --- a/docs/content/docs/sorts.md +++ b/docs/content/docs/sorts.md @@ -15,7 +15,7 @@ Pagefind supports sorting results by tagged attributes instead of page relevancy An element tagged with `data-pagefind-sort` will capture the contents of that element and provide the given key as a sort option to the Pagefind JS API. In the above example, the page would be tagged as `date: "2022-10-20"`. -## Capturing a filter value from an attribute +## Capturing a sort value from an attribute If the data you want to sort by exists as an attribute, you can use the syntax `sort_key[html_attribute]`