-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
If the description plugin is turned off, the ContentIndex plugin doesn't print page bodies into static/contentIndex.json. ContentIndex gets the page bodies from data.text of each page's VFile, but data.text is only set if the description plugin runs.
This leads to full-text search not working without the description plugin.
To Reproduce
Steps to reproduce the behavior:
- set up a default Quartz:
git clone https://github.com/jackyzha0/quartz; cd ./quartz; npm i - comment out the Description plugin in
quartz.config.ts - build the Quartz:
npx quartz build -d ./docs cat public/static/contentIndex.json- the "content" fields are empty
Search not working:
- view the webpage:
npx quartz build --serve -d ./docs - in the search bar, enter a term that only appears in text bodies, e.g. "student", "teacher" from the front page
- no search results.
Expected behavior
contentIndex.json would include page bodies, even if the description plugin is turned off.
Desktop (please complete the following information):
- Quartz Version: v4.5.2
nodeVersion: v22.16.0npmversion: v11.4.2- OS: Linux Mint
- Browser: Firefox
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working