Skip to content

Commit

Permalink
Merge pull request #524 from nhoizey/patch-1
Browse files Browse the repository at this point in the history
Fix typo in sorting docs
  • Loading branch information
bglw authored Dec 7, 2023
2 parents a3e677b + b8d3d95 commit 34eb544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/docs/sorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]`

Expand Down

0 comments on commit 34eb544

Please sign in to comment.