Skip to content

Search all pages in Pages[] by default #1882

Answered by Fil
Martien asked this question in Q&A
Discussion options

You must be logged in to vote

The pages option is a list of pages and sections — sections being lists of pages. There is no third level. The option is normalized here:
https://github.com/observablehq/framework/blob/main/src/config.ts#L440

Anything that you add to this option and does not fit this expected shape is ignored. If your site structure is different from the expected, you can add a search: true statement in the relevant pages’ front-matter. It's what I do in pangea.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Fil
Comment options

Fil Dec 15, 2024
Collaborator

Answer selected by Fil
@Martien
Comment options

@Martien
Comment options

@Martien
Comment options

@Fil
Comment options

Fil Dec 17, 2024
Collaborator

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