Skip to content
Discussion options

You must be logged in to vote

Hello! 👋

Hmm, Pagefind could probably do with a better way of excluding things if there are this many folders and files to exclude, but there is a way now that might just take a few experiments.

Using the glob option on the Pagefind CLI, you can control what files are ingested (instead of the default **/*.{html} which captures everything. The glob will be slightly ugly when it gets this complicated, since you'll need to opt-in to files for now — I'd definitely recommend configuring it in a pagefind config file rather than over the CLI.

For example, if I have the file tree:

index.html
other.html # <- I want to exclude this file
about/
  index.html
  nested/
    index.html

I could use the p…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ndeville
Comment options

@bglw
Comment options

bglw Nov 15, 2022
Maintainer

@ndeville
Comment options

@bglw
Comment options

bglw Nov 16, 2022
Maintainer

@ndeville
Comment options

Answer selected by ndeville
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants