I’m trying to have a /index.json file to use with algolia that includes all pages, regardless of their Language.
Searching the forum I found a few mentions to .Site.AllRegularPages and the documentation also shows .Site.AllPages as an option. However that still only returns the pages for the current language.
Thinking way back, when I was setting up a bilingual site, I wanted a combined set of tags, which I never figured out how to do. I’m interested in this as well, if indirectly.
In case there is no hugo solution, you might be able to script something to grab the files from generated sites, and merge them before feeding the result to algolia. If I were trying it, I would try it with jq.
It turns out that I had two index.json files, one in the theme folder and another in /layouts/index.json
I found that out when I was preparing a test site to include in the github issue.
As an added note, I would recommend using append to create search lists like in the above. The .Scratch construct looks a little clumsy now that Go template supports variable overwrites.