Skip to content

don't understand how to modify pagefind-ui. and how to keep it between reindexing #515

@evanescente-ondine

Description

@evanescente-ondine

Hi,
I know very little about javascript. I can't copy/paste and understand basic grammar, so I deduced that the configuration I need is this:

new PagefindUI({
element: "#search",
showImages: false,
excerptLength: 12,
resetStyles: false
});

But otherwise I don't know where to put this. I thought it would be in "pagefind.js", I wrote it as such at the end of the file, but then it does nothing. Also I am bothered, could this be written in a config file instead ? Because if it's under pagefind/, everytime I redo the indexing -by running npx pagefind, those modifications will be erased, am I right ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions