Replies: 1 comment 4 replies
-
|
👋 You're correct that the two methods for configuring Pagefind further are data attributes, or the indexing APIs. Out of interest, what attributes are you looking to configure this way? It is a feature that can be built, so it's mostly about finding a nice configuration for it that doesn't feel too cumbersome. (It's also slightly tricky to implement in the parsing setup Pagefind uses, but that's an internal issue, with a few solutions) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe I wasn't looking hard enough, but currently there seem to be no way to have an external index configuration?
There is the data attribute way, but that isn't very reusable especially since it couples templates and index definition - it's as flexible and reusable as inline CSS. I know it's possible to do some preprocessing before using the JS or Python indexing APIs, but that in turn increases the required implementation effort.
How about a method that would get rid of inline changes by using a mapping like (greatly simplified) CSS Selector => contents of data attributes.
Those can be applied in a generic preprocessor step that would be done before feeding a content file into the next step of the indexer pipeline...
Beta Was this translation helpful? Give feedback.
All reactions