Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a means to separate collections #32

Open
drusellers opened this issue Jul 30, 2018 · 1 comment
Open

Provide a means to separate collections #32

drusellers opened this issue Jul 30, 2018 · 1 comment

Comments

@drusellers
Copy link
Contributor

I want to have a means to index all of the content in a jekyll site but then filter on collection when searching.

@alranel
Copy link
Contributor

alranel commented Feb 2, 2019

@drusellers you can assign a default value to each collection in Jekyll config:

collections:
  platforms:
     output: true
     permalink: /:path/

defaults:
  -
    scope:
      path: ""
      type: "platforms"
    values:
      toc: true
      layout: platform
      mykey: platform

mykey gets automatically injected to Elasticsearch, so you can filter by that when searching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants