You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set default layout values for collection documents in my _config.yml file. I also want to use layout as an attribute for faceting. I used to be able to do this—However, I recently upgraded to the latest version of the gem (1.4.11) and this seems to no longer work. Looking at the dashboard in Algolia under facets—it says that layout is an unknown attribute.
Any thoughts on how I can add layout as an attribute for faceting?
The text was updated successfully, but these errors were encountered:
I have similar issue and I did some research with REPL.
It seems like the plugin takes records using Jekyll's data method, which does not return defaults from _config.yml. I was able to only extract defaults with .instance_variable_get '@defaults' on a page object using Jekyll hooks. So, at the moment, to make custom keys visible to Algolia, they can be added via a front matter; or using a Jekyll plugin, which would push custom keys from @defaults to data.
I set default layout values for collection documents in my
_config.yml
file. I also want to use layout as an attribute for faceting. I used to be able to do this—However, I recently upgraded to the latest version of the gem (1.4.11) and this seems to no longer work. Looking at the dashboard in Algolia under facets—it says that layout is an unknown attribute.Any thoughts on how I can add layout as an attribute for faceting?
The text was updated successfully, but these errors were encountered: