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

.editorconfig's use of tabs instead of spaces causes eleventyNavigation to fail #171

Open
jayjansheski opened this issue Feb 25, 2024 · 0 comments

Comments

@jayjansheski
Copy link

jayjansheski commented Feb 25, 2024

First, thanks for 11ty!

Here's an issue I'm seeing: .editorconfig was changed to use tabs instead of spaces, but that seems to cause eleventyNavigation to fail. (Tabs are forbidden in YAML.)

Here's how the issue can be reproduced:

  1. git clone https://github.com/11ty/eleventy-base-blog.git
  2. cd eleventy-base-blog
  3. npm install
  4. Add books/index.md parallel to about/index.md
  5. Select and copy the contents of about/index.md to books/index.md, changing key to Books and order to 4. Optionally, change the markdown content. I'm using VSCode on macOS.
layout: layouts/base.njk
eleventyNavigation:
	key: "Books"
	order: 4
---
# Books

I am a person that reads stuff.
  1. npm start and visit the site at localhost:8080; notice Books doesn't show up in the menu.

Change the tabs before key and order to spaces and it'll work fine.

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

1 participant