I have removed unnecessary data/files from the site as much as possible and can confirm that this repo still exhibits the same 404 error both at localhost:1313/search.json as well as localhost:1313/search/index.json
If there is any other information that you think would be useful, please let me know!
The Ouput Format definition goes into the project config and not in the front matter of Markdown files. EDIT: It is perfectly possible to define an output per page.
Try the following:
outputs:
home:
- HTML
search:
- JSON
page:
- HTML
Then move the JSON template to /layouts/_default/list.json
I suggest that instead of placing overrides under the theme directory place them in a /layouts/ folder under the root of your project.
Also never leave the baseURL value blank because parts of the project will not be outputted properly.
If the above does not fix your problems note that I cannot test your sample repo because I do not have PostCSS installed, since I do not use it and I don’t plan to install it either.
Someone else will need to look into your repo if the issue persists.
Thank you for the detailed reply.
I have followed the steps you mentioned but no luck yet.
PostCSS is not needed for this small example so I’ve removed it, if you wish to replicate it locally. The same repo has the latest changes.
Thanks again