Skip to content

v0.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jul 10:15
· 893 commits to main since this release

Features & Improvements

  • The glob that Pagefind uses for finding files to index can now be configured. See Config > Glob
  • Added a data-pagefind-ignore="all" option that does not process filters or metadata within the target element. See Indexing > Removing individual elements from the index
  • Added a data-pagefind-default-meta attribute that can provide fallback values for metadata that could not be found on the page. See Metadata > Defining default metadata
  • UI: Pagefind UI will now check for a url key in a page's metadata that should be used over the generated URL. See UI > Overriding the URL of a result
  • UI: Added a configuration option for hiding images from the Pagefind UI. See UI > Show images
  • UI: Added a configuration option to hide filter values that have no available results given the search query and existing filters. See UI > Show empty filters
  • UI: The Pagefind UI filter panel will now default to expanded if there are sufficiently few filters

Fixes & Tweaks

  • Server gzip support
    • Pagefind implements its own gzip handling, but would fail in the rare case that a server detected the gzipped files and served them such that a browser would decompress them. Pagefind will now identify that these files have already been decompressed rather than error.
  • UI: HTML entity improvements
    • Fixed the remaining elements in the Pagefind UI that did not correctly render HTML entities.
  • UI: Filter state improvements
    • Previously, deleting a search term would reset the selected filter values and the open filter groups. This state is now preserved when the search input is empty.
  • UI: The Pagefind UI JS and CSS files are now correctly minified