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
Layouts with fully numeric names are not recognized #6190
Comments
Does the site build correctly if with the |
I may be misunderstanding your question, but I believe you're asking whether the site builds correctly while Yes, the site builds correctly while |
What if you change your YAML to: ---
layout: "404"
--- |
Yes, that fixed it, thanks @pathawks. Didn't expect it to be a type problem. Would we still consider this a bug or no? I'm not sure why layout would be treated as anything other than a string, but I'm sure you have more context than I do. |
Lets assume that you ignored the build warning for |
@ashmaroli the page does not render properly with |
Because, the Front Matter is just plain ol' YAML data, without any intermittent processing.. |
IMO, instead of silently converting, we should |
Sure, I understand insofar as Jekyll has a number of predefined front matter properties that it uses for very specific purposes, e.g., to specify filenames. I'd be more in favor of treating But, either resolution is fine with me. I appreciate you taking the time out to work on this. Thank you. |
Yup. |
Nah, we should just silently convert in this case because the user is specifying a file and shouldn't have to care about YAML's String vs. Number type conversions. If we can take care of that for a user and give them a better user experience, we should. This is the fix I'll be implementing a later today. |
@mattr- was this implemented? |
Nope. I never should have said "later today" because, of course, I ran out of time. I've made a note to myself to circle back around and do this. My ability to contribute to open source has been wildly inconsistent as of late. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced hooks which provide convenient access points throughout the Jekyll build pipeline whereby most needs can be fulfilled. If this is something that cannot be built as a plugin, then please provide more information about why in order to keep this issue open. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
@mattr-, how about now 😉 |
Closed via #6442 |
github-pages
jekyll doctor
to check my configurationMy Reproduction Steps
Create three files (one 404 file, and two layout files):
./404.html
./_layouts/404.html
./_layouts/404a.html
Both layouts have the same content, they differ only in filename.
Firstly, the error is produced when
./404.html
has the first layout specified:jekyll build
shows:When we change the layout to include one alphabetic character, there are no warnings:
jekyll build
shows no build warnings, and the layout is rendered as expected.Gemfile
/cc @jekyll/build
The text was updated successfully, but these errors were encountered: