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

bugfix: slug in categoryByPage and categoryVar check in frontmatter #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avionics18
Copy link

@brob as mentioned in the README, categoryVar is the variable in the frontmatter that is used to assign categories to your content. And categoryCollection is used if you want to name the collection different from the value that is set in categoryVar.

Thus, this pull request fixes two things:

  • categoryVar is used to check in the frontmatter of posts
  • for posts having categories with spaces e.g: ['dev', 'UI Designs'], the slug wasn't properly genearted, added slugify.

.eleventy.js and articles in the demo/ folder have been updated to demonstrate this new change.

@olegfedak
Copy link

olegfedak commented Sep 29, 2023

@avionics18, your changes have solved the issue #9 that I got not long ago.

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

Successfully merging this pull request may close these issues.

2 participants