-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Comments
Another example from this repo, changed spaces to tabs in the frontmatter of
Error:
Sadly I don't think .editorconf spec and implementations support mixing spaces and tabs in the same file type based on further rules? |
@fapdash yes, easy fix! But I don't understand why it was switched to tabs... seems like it breaks stuff with no upside other than maybe somebody's personal preference? |
@jayjansheski zachleat shared this link back then when the change happened: https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/, see e6dc55c#commitcomment-99554645 |
@fapdash I think that's a fine argument (the argument is that tabs allow people to choose their own indentation width) but if tabs break the build, it seems like an odd change to make. For anyone using an editor that respects |
First, thanks for 11ty!
Here's an issue I'm seeing:
.editorconfig
was changed to use tabs instead of spaces, but that seems to causeeleventyNavigation
to fail. (Tabs are forbidden in YAML.)Here's how the issue can be reproduced:
git clone https://github.com/11ty/eleventy-base-blog.git
cd eleventy-base-blog
npm install
books/index.md
parallel toabout/index.md
about/index.md
tobooks/index.md
, changingkey
toBooks
andorder
to4
. Optionally, change the markdown content. I'm using VSCode on macOS.npm start
and visit the site atlocalhost:8080
; noticeBooks
doesn't show up in the menu.Change the tabs before
key
andorder
to spaces and it'll work fine.The text was updated successfully, but these errors were encountered: