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

Cannot specify default categories for certain paths #4506

Closed
chasemccoy opened this issue Feb 10, 2016 · 1 comment
Closed

Cannot specify default categories for certain paths #4506

chasemccoy opened this issue Feb 10, 2016 · 1 comment
Labels
frozen-due-to-age stale Nobody stepped up to work on this issue.

Comments

@chasemccoy
Copy link

I just updated to Jekyll 3.1.1 from Jekyll 2.x, and I was previously using a unique file structure. In my _posts folder I had three different folders corresponding to 3 different categories on my site.

In my _config.yml file, I had these defaults set to add a corresponding category to the posts in each folder:

defaults:
  -
    scope:
      path: ""
      type: "posts"
    values:
      layout: "post"
      category: post
  -
    scope:
      path: "asides"
      type: "posts"
    values:
      category: asides
  -
    scope:
      path: "columns"
      type: "posts"
    values:
      category: columns
  -
    scope:
      path: "quotes"
      type: "posts"
    values:
      category: quotes

To clarify, the files in _posts/asides/ should get the asides category, etc. After updating to Jekyll 3.x, this no longer to seems to work. On the index of my site I am trying to loop over posts with this category using {% for post in site.categories.asides %}, but this gives me output.

I have searched for a solution to this and have found none, so I am assuming it is a bug somewhere in Jekyll. I looked at the upgrade guide but didn't see any mention of any changes that would affect this.

@parkr
Copy link
Member

parkr commented Feb 17, 2016

This looks like a dupe to me of one of the following: #3287 #4458 #4331 #3928 #3819.

@jekyllbot jekyllbot added the stale Nobody stepped up to work on this issue. label Jun 6, 2016
@jekyll jekyll locked and limited conversation to collaborators Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age stale Nobody stepped up to work on this issue.
Projects
None yet
Development

No branches or pull requests

3 participants